fix(shell): export Code/scripts in bashrcExtra for SSH non-login sessions

This commit is contained in:
kiskaadee committed 2026-09-09 04:01:02 -05:00
1 parent 721d607a1c
commit d82dbff90c
1 file changed
+4 -2
+4 -2
View File
@@ -204,8 +204,10 @@
# Inject modular shell helper scripts directly into .bashrc. # Inject modular shell helper scripts directly into .bashrc.
# This allows us to keep discrete logic files without cluttering home.nix or base.nix. # This allows us to keep discrete logic files without cluttering home.nix or base.nix.
bashrcExtra = '' bashrcExtra = ''
# Ensure Home Manager session variables and PATH are available in non-login / SSH shells # Ensure Home Manager session variables and user 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 [[ -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/wayland.sh} # Wayland clipboard helper (wlc)
${builtins.readFile ./shell/git.sh} # Git workflow automations (gacp, gitignore) ${builtins.readFile ./shell/git.sh} # Git workflow automations (gacp, gitignore)