keep NIX_PATH in sudo env
fixes: file `nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I) svn path=/nixos/trunk/; revision=32973
This commit is contained in:
parent
45fab492fc
commit
5115e6a1d0
@ -34,6 +34,7 @@ in
|
|||||||
|
|
||||||
# env vars to keep for root and %wheel also if not explicitly set
|
# env vars to keep for root and %wheel also if not explicitly set
|
||||||
Defaults:root,%wheel env_keep+=LOCALE_ARCHIVE
|
Defaults:root,%wheel env_keep+=LOCALE_ARCHIVE
|
||||||
|
Defaults:root,%wheel env_keep+=NIX_PATH
|
||||||
Defaults:root,%wheel env_keep+=TERMINFO_DIRS
|
Defaults:root,%wheel env_keep+=TERMINFO_DIRS
|
||||||
|
|
||||||
# "root" is allowed to do anything.
|
# "root" is allowed to do anything.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user