This is how I manage my workstations. Currently using nix (and nix-darwin).
- Install nix (daemon mode):
sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume --daemon
- Install nix-darwin:
nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer
./result/bin/darwin-installer
- Add home-manager channel:
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
- Link
./darwin/configuration.nix
to~/.nixpkgs/darwin-configuration.nix
- Run
darwin-rebuild switch