souce hm-session-vars only if user

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2025-09-23 15:39:06 +02:00
parent caf48a81dd
commit 9f49dbbd98

View File

@@ -65,6 +65,8 @@
system.stateVersion = hyper.pkgs-version; system.stateVersion = hyper.pkgs-version;
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
programs.bash.shellInit = '' programs.bash.shellInit = ''
source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh if [[ "$USER" == "${hyper.user}" ]]; then
source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
fi
''; '';
} }