From 721d607a1c0a119d281678a4c913c26c90295327 Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Tue, 8 Sep 2026 23:02:20 -0500 Subject: [PATCH] feat(user): add ~/Core/scripts to PATH and source hm-session-vars in bashrc --- home.nix | 2 ++ modules/user/base.nix | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/home.nix b/home.nix index 2a15df6..7b16348 100644 --- a/home.nix +++ b/home.nix @@ -18,6 +18,8 @@ # Ensure cargo/bin (and other user binaries) are in the system PATH home.sessionPath = [ "$HOME/.cargo/bin" + "$HOME/.local/bin" + "$HOME/Core/scripts" ]; # The state version of Home Manager that this configuration is compatible with. diff --git a/modules/user/base.nix b/modules/user/base.nix index 09976b5..a901243 100644 --- a/modules/user/base.nix +++ b/modules/user/base.nix @@ -146,7 +146,6 @@ # Shell Aliases for speed, productivity, and command overrides shellAliases = { - appctl = "/home/kiskaadee/Core/scripts/appctl"; zed = "zeditor"; reload = "exec bash"; ff = "fastfetch --logo none"; @@ -205,6 +204,9 @@ # 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 + ${builtins.readFile ./shell/wayland.sh} # Wayland clipboard helper (wlc) ${builtins.readFile ./shell/git.sh} # Git workflow automations (gacp, gitignore) ${builtins.readFile ./shell/pdf.sh} # Command line PDF decryption helper