This is my personal Nix for macOS configuration.
Nix
$ sh <(curl -L https://nixos.org/nix/install)
Xcode Command Line Tools
$ xcode-select --install
Rosetta 2
$ softwareupdate --install-rosetta
$ git clone git@github.com:benjidotsh/nix.git
$ nix build .#darwinConfigurations.BEP6NDVF74Q5.system --extra-experimental-features 'nix-command flakes'
$ ./result/sw/bin/darwin-rebuild switch --flake .#BEP6NDVF74Q5
After deploying the configuration for the first time, you can simply run just deploy
to apply changes.
To view all available commands, run just
.