7 lines
320 B
Text
7 lines
320 B
Text
|
|
# Set up Nix only on SSH connections
|
|
# See: https://github.com/DeterminateSystems/nix-installer/pull/714
|
|
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ] && [ -n "${SSH_CONNECTION:-}" ] && [ "${SHLVL:-0}" -eq 1 ]; then
|
|
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
|
|
fi
|
|
# End Nix
|