diff --git a/system/etc.nix b/system/etc.nix index c4f69ffd76d..4f94b904ecd 100644 --- a/system/etc.nix +++ b/system/etc.nix @@ -7,6 +7,7 @@ let envConf = pkgs.writeText "environment" " PATH=${systemPath}/bin:${systemPath}/sbin:${pkgs.openssh}/bin + NIX_REMOTE=daemon " /* ${pkgs.openssh}/bin is a hack to get remote scp to work */; in diff --git a/system/etc/profile.sh b/system/etc/profile.sh index b858f9e74b0..ae29c857294 100644 --- a/system/etc/profile.sh +++ b/system/etc/profile.sh @@ -13,6 +13,8 @@ fi if test "$USER" != root; then export NIX_REMOTE=daemon +else + export NIX_REMOTE= fi