From 5115e6a1d0279ee7367b90f6562f0b1d5eba4bbb Mon Sep 17 00:00:00 2001 From: Florian Friesdorf Date: Sat, 10 Mar 2012 16:11:40 +0000 Subject: [PATCH] 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 --- modules/security/sudo.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/security/sudo.nix b/modules/security/sudo.nix index 92677f2a8db2..3f01633d67ad 100644 --- a/modules/security/sudo.nix +++ b/modules/security/sudo.nix @@ -34,6 +34,7 @@ in # 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+=NIX_PATH Defaults:root,%wheel env_keep+=TERMINFO_DIRS # "root" is allowed to do anything.