mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
nixos, nix-darwin: fix user packages install
It is insufficient to install the packages in `home.packages`, it has to be `home.path`, which includes configured extra package outputs or profile commands.
This commit is contained in:
parent
e0fb488e57
commit
1a8ab9d9de
2 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ in
|
||||||
|
|
||||||
users.users = mkIf cfg.useUserPackages (
|
users.users = mkIf cfg.useUserPackages (
|
||||||
mapAttrs (username: usercfg: {
|
mapAttrs (username: usercfg: {
|
||||||
packages = usercfg.home.packages;
|
packages = [ usercfg.home.path ];
|
||||||
}) cfg.users
|
}) cfg.users
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@ in {
|
||||||
})));
|
})));
|
||||||
|
|
||||||
users.users = mkIf cfg.useUserPackages
|
users.users = mkIf cfg.useUserPackages
|
||||||
(mapAttrs (username: usercfg: { packages = usercfg.home.packages; })
|
(mapAttrs (username: usercfg: { packages = [ usercfg.home.path ]; })
|
||||||
cfg.users);
|
cfg.users);
|
||||||
|
|
||||||
systemd.services = mapAttrs' (_: usercfg:
|
systemd.services = mapAttrs' (_: usercfg:
|
||||||
|
|
Loading…
Reference in a new issue