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 [email protected]:benjidotsh/nix.git
$ nix build .#darwinConfigurations.$(hostname -s).system --extra-experimental-features 'nix-command flakes'
$ sudo ./result/sw/bin/darwin-rebuild switch --flake .#$(hostname -s)
After deploying the configuration for the first time, you can simply run just deploy
to apply changes.
To view all available commands, run just
.
The following configuration can't be managed by Nix and needs to be configured manually:
-
Enable the 1Password SSH agent
- Open 1Password → Settings → Developer.
- Enable “Use the SSH agent”.
-
Apply the custom Terminal theme
- Open Terminal → Settings → Profiles.
- Import catppuccin-macchiato.terminal and set it as default.
-
Disable Terminal prompt line markers
- Navigate to Terminal → Edit → Marks.
- Disable “Automatically Mark Prompt Lines".