mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
home-environment: reset PATH in activation script
Starting with state version 22.11 we completely reset the PATH variable in the activation script. This is to avoid impurities and unexpected results if the activation script accidentally uses a command found in the user's PATH.
This commit is contained in:
parent
d67776563e
commit
886675991b
3 changed files with 35 additions and 5 deletions
|
|
@ -35,7 +35,7 @@ let
|
|||
|
||||
# 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 ];
|
||||
nix.package = config.nix.package;
|
||||
};
|
||||
})
|
||||
] ++ cfg.sharedModules;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue