* Set NIX_REMOTE when logging in through SSH. Quick hack. Should really
figure out why the environment isn't initialised properly in non-interactive SSH logins. svn path=/nixos/trunk/; revision=8136
This commit is contained in:
parent
fb2a9d91a1
commit
1a66b71e2d
|
@ -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
|
||||
|
|
|
@ -13,6 +13,8 @@ fi
|
|||
|
||||
if test "$USER" != root; then
|
||||
export NIX_REMOTE=daemon
|
||||
else
|
||||
export NIX_REMOTE=
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue