diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 9f0e417..fe035bb 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -102,6 +102,10 @@ }; environment.systemPackages = with pkgs; [ + # Core orchestrator wrapper (available system-wide including non-interactive SSH) + (writeShellScriptBin "appctl" '' + exec "''${CORE_DIR:-$HOME/Core}/scripts/appctl" "$@" + '') # Monitoring & diagnostics htop iotop diff --git a/nixos/modules/shell.nix b/nixos/modules/shell.nix index 21c815a..46e938f 100644 --- a/nixos/modules/shell.nix +++ b/nixos/modules/shell.nix @@ -20,6 +20,12 @@ qpdf # PDF decryption (used by pdf_dc function) ]; + # ── Environment & PATH ──────────────────────────────────────────────────────── + # Export Core scripts and user bin to /etc/set-environment so all subshells inherit them + environment.extraInit = '' + export PATH="$HOME/Core/scripts:$HOME/.local/bin:$HOME/.cargo/bin:$PATH" + ''; + # ── Bash configuration ──────────────────────────────────────────────────────── programs.bash = { shellAliases = {