1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-01 04:23:34 +02:00

misc: fix nix.conf generation (#2824)

nix/nix.conf should generate if cfg.extraOptions is not empty.
This commit is contained in:
Curtis Jiang 2022-04-17 17:46:26 -04:00 committed by GitHub
parent c82b8ac5ad
commit bb860e3e11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,7 +230,9 @@ in {
};
};
"nix/nix.conf" = mkIf (cfg.settings != { }) { source = nixConf; };
"nix/nix.conf" = mkIf (cfg.settings != { } || cfg.extraOptions != "") {
source = nixConf;
};
};
};