Nix on macOS
There is nix-darwin project that brings Nix configuration to describing many of macOS services.
- 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(where
home-useris name of home directory)
- Nix darwin generates files to