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;
};
}; };
}; };