nix

Darwin Nix

  • edit ~/.nixpkgs/darwin-configuration.nix
  • run % darwin-rebuild switch
  • upgrade
    sudo -i sh -c 'nix-channel --update && nix-env -iA nixpkgs.nix && launchctl remove org.nixos.nix-daemon && launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist'

Flakes

An introduction to nix flakes

Cheat Sheet

  • Install a package: nix-env -f '<nixpkgs>' -iA tmux
  • Remove a package: nix-env -e tmux
  • List all installed packages: nix-env --query
  • Search for tmux: nix search tmux
  • Update package list: nix-channel --update

Nix on Mac OS

Docs

Todo

  • Write pkgs (what’s the right wording here) for OSS Mac only applications (like Spectacle, Amphetamine, … see MacOs)

Missing Mac OS applications

Unfree

  • Contexts
  • Lens
  • Logseq