environment.darwinConfig
The path of the darwin configuration.nix used to configure the system, this updates the default darwin-config entry in NIX_PATH. Since this changes an environment variable it will only apply to new shells.
NOTE: Changing this requires running darwin-rebuild switch -I darwin-config=/path/to/configuration.nix
the first time to make darwin-rebuild aware of the custom location.
- Type
null or absolute path or string- Default
if config.nixpkgs.flake.setNixPath then # Don’t set this for flake‐based systems. null else if config.system.stateVersion >= 6 then "/etc/nix-darwin/configuration.nix" else "${config.system.primaryUserHome}/.nixpkgs/darwin-configuration.nix"- Declared
- <nix-darwin/modules/environment>