Merge pull request #12841 from NixOS/mergify/bp/2.25-maintenance/pr-12805

nix-daemon: source nix-profile-daemon.sh only once (backport #12805)
This commit is contained in:
mergify[bot] 2025-04-01 07:49:36 +00:00 committed by GitHub
commit 38de6fbe38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,7 @@
# Only execute this file once per shell.
# This file is tested by tests/installer/default.nix.
if [ -n "${__ETC_PROFILE_NIX_SOURCED:-}" ]; then return; fi
__ETC_PROFILE_NIX_SOURCED=1
export __ETC_PROFILE_NIX_SOURCED=1
NIX_LINK=$HOME/.nix-profile
if [ -n "${XDG_STATE_HOME-}" ]; then