shell: set NIX_REMOTE only if daemon-socket exists
This commit is contained in:
parent
05eb415bea
commit
a1cdec85d6
@ -236,7 +236,9 @@ in pkgs.stdenv.mkDerivation {
|
|||||||
shellHook = /* sh */ ''
|
shellHook = /* sh */ ''
|
||||||
export OLD_PATH="$PATH"
|
export OLD_PATH="$PATH"
|
||||||
export NIX_PATH=stockholm=$PWD:nixpkgs=${toString <nixpkgs>}
|
export NIX_PATH=stockholm=$PWD:nixpkgs=${toString <nixpkgs>}
|
||||||
export NIX_REMOTE=daemon
|
if test -e /nix/var/nix/daemon-socket/socket; then
|
||||||
|
export NIX_REMOTE=daemon
|
||||||
|
fi
|
||||||
export PATH=${lib.makeBinPath [
|
export PATH=${lib.makeBinPath [
|
||||||
pkgs.populate
|
pkgs.populate
|
||||||
shell.cmdspkg
|
shell.cmdspkg
|
||||||
|
Loading…
Reference in New Issue
Block a user