Single repo to bootstrap macOS, NixOS, and non-NixOS Linux with Nix.
- Install Nix + enable flakes
xcode-select --install || true
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --determinate
exec "$SHELL" -l- Setup system
sudo nix run \
--extra-experimental-features 'nix-command flakes' \
nix-darwin -- switch \
--flake ./#macos- Update the nix.local
Update the nix.local with the correct username, email and additional config changes you'd like.
- Setup home
home-manager switch --flake .#user@macosReload your terminal. You should now see a new zshrc prompt showing that the home-manager's dotfiles are loaded.
# Rebuild system
sudo darwin-rebuild switch --flake ./#macos
# Rebuild user
home-manager switch --flake .#user@macos