On a new macOS machine, install Nix first and then apply nix-darwin.
- Install Nix in multi-user mode
Official installer:
sh <(curl -L https://nixos.org/nix/install) --daemonThe official Nix manual recommends the multi-user installation on macOS.
Alternative:
- Install Determinate Nix if you prefer their installer flow
- Clone this repository
- Run the initial activation
darwin-rebuild switch --flake .#macOS1password and 1password-cli are installed through the Homebrew section managed by nix-darwin.
On a new machine, the intended flow is:
- Run
darwin-rebuild switch --flake .#macOS - Sign in to the 1Password GUI
- Create a
Machine Bootstrapitem in thePersonalvault - Store the service account token in the
service_account_tokenfield - Put
NotchNook Licensein themachine-secretsvault - Run
darwin-rebuild switch --flake .#macOSagain
During the second activation, the activation script will:
- read the service account token from
Personal/Machine Bootstrap - create
~/.config/1password/service-account-token - read
machine-secrets/NotchNook Licensethrough the service account - re-inject
keyActiveintoNotchNook
nix-darwin/configuration.nixsetsnix.enable = false;, so Nix itself must be installed by an external installer- Do not store secrets in this repository