mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
misc: fix nix.conf generation (#2824)
nix/nix.conf should generate if cfg.extraOptions is not empty.
This commit is contained in:
parent
c82b8ac5ad
commit
bb860e3e11
1 changed files with 3 additions and 1 deletions
|
@ -230,7 +230,9 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
"nix/nix.conf" = mkIf (cfg.settings != { }) { source = nixConf; };
|
"nix/nix.conf" = mkIf (cfg.settings != { } || cfg.extraOptions != "") {
|
||||||
|
source = nixConf;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue