1
0
Fork 0
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:
Robert Helgesson 2020-06-19 00:21:12 +02:00
parent e0fb488e57
commit 1a8ab9d9de
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
2 changed files with 2 additions and 2 deletions

View file

@ -68,7 +68,7 @@ in
users.users = mkIf cfg.useUserPackages (
mapAttrs (username: usercfg: {
packages = usercfg.home.packages;
packages = [ usercfg.home.path ];
}) cfg.users
);

View file

@ -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: