From d82dbff90cb0d3c850c60e2bef606a8b2025c5eb Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Wed, 9 Sep 2026 04:01:02 -0500 Subject: [PATCH] fix(shell): export Code/scripts in bashrcExtra for SSH non-login sessions --- modules/user/base.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/user/base.nix b/modules/user/base.nix index a901243..ab9751b 100644 --- a/modules/user/base.nix +++ b/modules/user/base.nix @@ -204,8 +204,10 @@ # Inject modular shell helper scripts directly into .bashrc. # This allows us to keep discrete logic files without cluttering home.nix or base.nix. bashrcExtra = '' - # Ensure Home Manager session variables and PATH are available in non-login / SSH shells - [[ -f ~/.nix-profile/etc/profile.d/hm-session-vars.sh ]] && . ~/.nix-profile/etc/profile.d/hm-session-vars.sh + # Ensure Home Manager session variables and user PATH are available in non-login / SSH shells + [[ -f /etc/profiles/per-user/$USER/etc/profile.d/hm-session-vars.sh ]] && . /etc/profiles/per-user/$USER/etc/profile.d/hm-session-vars.sh + [[ -f ~/.profile ]] && . ~/.profile + export PATH="$HOME/Core/scripts:$HOME/.local/bin:$HOME/.cargo/bin:$PATH" ${builtins.readFile ./shell/wayland.sh} # Wayland clipboard helper (wlc) ${builtins.readFile ./shell/git.sh} # Git workflow automations (gacp, gitignore)