1
0
Fork 0
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:
Robert Helgesson 2022-11-03 15:00:29 +01:00
parent d67776563e
commit 886675991b
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
3 changed files with 35 additions and 5 deletions

View file

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