etc: support experimental official Nix installer
This commit is contained in:
parent
6c5a56295d
commit
6d789c5a41
5 changed files with 26 additions and 2 deletions
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
# 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue