From 9f49dbbd98cec5c43a5c72d6713807a4bdf1580a Mon Sep 17 00:00:00 2001 From: "Lennart J. Kurzweg (Nx2)" Date: Tue, 23 Sep 2025 15:39:06 +0200 Subject: [PATCH] souce hm-session-vars only if user --- configuration.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 427350e..2e8762e 100644 --- a/configuration.nix +++ b/configuration.nix @@ -65,6 +65,8 @@ system.stateVersion = hyper.pkgs-version; nix.settings.experimental-features = [ "nix-command" "flakes" ]; 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 ''; }