One Git Repo, One Command: How Home Manager Restores a Full Mac Setup
A developer has shared a workflow that fully restores a Mac user environment using Home Manager, a tool built on the Nix package manager, from a single Git repository. The setup requires just three steps: installing Nix via the Determinate Systems installer, cloning the configuration repository, and running 'home-manager switch'. All packages, shell settings, aliases, and developer tools are declared in two files — flake.nix and home.nix — with a lockfile pinning every dependency to a fixed version for reproducibility. The author chose not to use nix-darwin, keeping Home Manager focused solely on the user environment rather than macOS system-level configuration. The Determinate Systems installer was preferred over the official Nix installer because it enables flakes and the nix-command interface by default.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in