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:
parent
c2cd2a52e0
commit
b53177de3d
1 changed files with 2 additions and 0 deletions
|
@ -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}";
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue