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
|
@ -68,7 +68,7 @@ in
|
|||
|
||||
users.users = mkIf cfg.useUserPackages (
|
||||
mapAttrs (username: usercfg: {
|
||||
packages = usercfg.home.packages;
|
||||
packages = [ usercfg.home.path ];
|
||||
}) cfg.users
|
||||
);
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ in {
|
|||
})));
|
||||
|
||||
users.users = mkIf cfg.useUserPackages
|
||||
(mapAttrs (username: usercfg: { packages = usercfg.home.packages; })
|
||||
(mapAttrs (username: usercfg: { packages = [ usercfg.home.path ]; })
|
||||
cfg.users);
|
||||
|
||||
systemd.services = mapAttrs' (_: usercfg:
|
||||
|
|
Loading…
Reference in a new issue