sudo darwin-rebuild switch --flake .#nix flake update
darwin-rebuild build --flake .#
sudo darwin-rebuild switch --flake .#nix fmt .
nix flake check --all-systems-
Check Hostname
-
Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -
Install 1Password and configure
-
Install
brew install 1password --cask
-
Configure SSH Agent
-
-
Install Determinate Nix
-
Install nix-darwin and Apply Configuration
- Set up GitHub Keys
ssh -T [email protected]
- Run nix-darwin (fail)
sudo nix run nix-darwin -- switch --flake "https://flakehub.com/f/adampie/nixconfig/0#"If writing to
/etc/zshenvfails, runsudo mv /etc/zshenv /etc/zshenv.before-nix-darwin -
Mac Settings
-
General
- AutoFill from Passwords -> False
-
Desktop & Dock
- Show Widgets On Desktop -> False
-
Displays
- More Space
-
Spotlight
- Show related content -> False
- Help Apple Improve Search -> False
-
Privacy & Security
-
Full Disk Access
- Ghostty -> True
-
Location Services
- Significant locations and routes -> False
- Mac Analytics -> False
-
Advanced
- Require an administrator password to access systemwide settings -> True
-
-
-
Application Settings
-
1Password - Deverloper
- Show 1Password Developer experience -> True
- Use the SSH Agent -> True
- Open SSH URLs with -> Ghostty
- Integrate with 1Password CLI -> True
- Check for developer credentials on disk -> True
-
Safari
- AutoFill -> Disable all
- Security -> Warn before connecting to a website over HTTP
- Extensions -> Allow in Private Browsing
- Advanced -> Show full website address
- Advanced -> Show features for web developers
- Active Wipr
-