Skip to content

Commit

Permalink
nixos, nix-darwin: fix user packages install
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rycee committed Jul 14, 2020
1 parent e0fb488 commit 1a8ab9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nix-darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ in

users.users = mkIf cfg.useUserPackages (
mapAttrs (username: usercfg: {
packages = usercfg.home.packages;
packages = [ usercfg.home.path ];
}) cfg.users
);

Expand Down
2 changes: 1 addition & 1 deletion nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1a8ab9d

Please sign in to comment.