Nix on macOS
There is nix-darwin project that brings Nix configuration to describing many of macOS services.
Notes
- To not enter password on every
darwin-rebuild switchwith nix-darwin, you can create/etc/sudoers.d/nix-darwinfile with this content:<home-user> ALL=(ALL:ALL) NOPASSWD: /run/current-system/sw/bin/darwin-rebuild(wherehome-useris name of home directory)
- Nix darwin generates files to
etc/static