nix.nixPath: Do not use environment.darwinConfig if set to null (#1469)
This commit is contained in:
commit
1dd19f19e4
1 changed files with 8 additions and 5 deletions
|
|
@ -443,11 +443,14 @@ in
|
|||
nixPath = mkOption {
|
||||
type = nixPathType;
|
||||
inherit (managedDefault "nix.nixPath" (
|
||||
lib.optionals cfg.channel.enable [
|
||||
# Include default path <darwin-config>.
|
||||
{ darwin-config = "${config.environment.darwinConfig}"; }
|
||||
"/nix/var/nix/profiles/per-user/root/channels"
|
||||
]
|
||||
lib.optionals cfg.channel.enable (
|
||||
lib.optionals (config.environment.darwinConfig != null) [
|
||||
# Include default path <darwin-config>.
|
||||
{ darwin-config = "${config.environment.darwinConfig}"; }
|
||||
] ++ [
|
||||
"/nix/var/nix/profiles/per-user/root/channels"
|
||||
]
|
||||
)
|
||||
)) default;
|
||||
|
||||
defaultText = lib.literalExpression ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue