1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

nix: add nix.package to home.packages

Add nix.package to home.packages if nix.package is not null.
This commit is contained in:
BarrOff 2024-08-24 22:02:54 +02:00
parent c2cd2a52e0
commit b53177de3d

View file

@ -276,6 +276,8 @@ in {
}; };
config = mkIf cfg.enable (mkMerge [ config = mkIf cfg.enable (mkMerge [
(mkIf (cfg.package != null) { home.packages = [ cfg.package ]; })
(mkIf (cfg.nixPath != [ ] && !cfg.keepOldNixPath) { (mkIf (cfg.nixPath != [ ] && !cfg.keepOldNixPath) {
home.sessionVariables.NIX_PATH = "${nixPath}"; home.sessionVariables.NIX_PATH = "${nixPath}";
}) })