mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08: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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user