- After initial macOS setup (user account, iCloud sign-in etc.) open Terminal.app and run
xcode-select --install
to install the macOS developer tools. - Generate a new SSH key using
ssh-keygen -t ed25519 -C "EMAIL_ADDRESS"
- Using Safari.app, login to GitHub and add the new key to the account.
- Clone the nix-configs repo locally:
git clone [email protected]:thommahoney/nix-configs.git ~/.config/nix-configs
-
Add the new host to the configuration if necessary.
-
Install homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install nix using the Determinate Systems Nix Installer
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
- Install
nix-darwin
:
nix run nix-darwin -- switch --flake ~/.config/nix-configs/$name
- Iterate on config and apply it with:
darwin-rebuild switch --flake ~/.config/nix-configs/$name