Declarative macOS system config for cm01 (MacBook Air M1, headless devbox).
sudo darwin-rebuild switch --flake ~/.config/nix-darwin- Install Nix (Determinate Systems installer)
- Install Homebrew
- Clone this repo to
~/.config/nix-darwin/ - Run the rebuild command above
- Restore sops age key from 1Password:
mkdir -p ~/.config/sops/age
op read "op://Private/talos/sops-age-key" > ~/.config/sops/age/keys.txt
chmod 600 ~/.config/sops/age/keys.txtGC and optimise must be run manually (Determinate installer manages the nix daemon):
nix-collect-garbage --delete-older-than 14d
nix store optimisenix.enable = falsebecause Determinate Systems installer manages the nix daemon- Flake files must be
git added beforedarwin-rebuildcan see them - Commit
flake.lock-- it pins your exact nixpkgs revision