Skip to content

dvmrry/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nix-darwin

Declarative macOS system config for cm01 (MacBook Air M1, headless devbox).

Rebuild

sudo darwin-rebuild switch --flake ~/.config/nix-darwin

Bootstrap on fresh install

  1. Install Nix (Determinate Systems installer)
  2. Install Homebrew
  3. Clone this repo to ~/.config/nix-darwin/
  4. Run the rebuild command above
  5. Restore sops age key from 1Password:
mkdir -p ~/.config/sops/age
op read "op://Private/talos/sops-age-key" > ~/.config/sops/age/keys.txt
chmod 600 ~/.config/sops/age/keys.txt

Nix store maintenance

GC and optimise must be run manually (Determinate installer manages the nix daemon):

nix-collect-garbage --delete-older-than 14d
nix store optimise

Notes

  • nix.enable = false because Determinate Systems installer manages the nix daemon
  • Flake files must be git added before darwin-rebuild can see them
  • Commit flake.lock -- it pins your exact nixpkgs revision

About

personal backup of my config files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors