nixconf

Stars
3

This is my personal nix configuration.

Notes on setuping a NixOS host from scratch

  • Boot from the latest unstable ISO
  • Format the disks (see hosts/sandhose-desktop)
  • Mount the disks under /mnt
  • Run as root a new nix shell with nixUnstable and cachix:
    nix-shell -p nixUnstable -p cachix
    
  • Enable the cachix cache:
    cachix use sandhose -m user-nixconf
  • Enable unstable features:
    echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
    
  • Install the system (--impure seems necessary):
    nixos-install --flake 'github:sandhose/nixconf#sandhose-desktop' --root /mnt --impure
    

Adding new cachix caches

cachix use <cache> -m nixos -d ./profiles/base/