etc: support experimental official Nix installer

This commit is contained in:
Michael Hoang 2026-02-17 23:36:16 +01:00
parent 6c5a56295d
commit 6d789c5a41
5 changed files with 26 additions and 2 deletions

View file

@ -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