1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

darwin: add Nix package to activation $PATH

The fix for https://github.com/nix-community/home-manager/issues/2178
did not apply the patch to nix-darwin too.

See: https://github.com/nix-community/home-manager/issues/2178#issuecomment-1029015498
This commit is contained in:
Nicolas Berbiche 2022-02-03 15:24:31 -05:00
parent 9d369c75ce
commit 1fa809f783
No known key found for this signature in database
GPG key ID: FA5696EDF35DA0B6

View file

@ -29,6 +29,10 @@ let
home.username = config.users.users.${name}.name;
home.homeDirectory = config.users.users.${name}.home;
# Make activation script use same version of Nix as system as a whole.
# This avoids problems with Nix not being in PATH.
home.extraActivationPath = [ config.nix.package ];
};
})
] ++ cfg.sharedModules;