Support nix XDG pathing

This commit is contained in:
2025-04-04 17:43:06 +00:00
parent e04bcc547b
commit f7627194db
4 changed files with 16 additions and 2 deletions

View File

@@ -50,4 +50,6 @@ export HISTFILESIZE=10000
if [ -r "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
elif [ -r "${XDG_STATE_HOME:-$HOME/.local/state}/nix/profile/etc/profile.d/nix.sh" ]; then
. "${XDG_STATE_HOME:-$HOME/.local/state}/nix/profile/etc/profile.d/nix.sh"
fi