feat(nixos): expose appctl and paths to non-interactive shells
Core Architecture & Invariant CI / validate (push) Successful in 9m40s

- Add a system-wide `appctl` binary wrapper via `writeShellScriptBin` to
  ensure the orchestrator is accessible outside of interactive bash sessions
  (e.g., direct SSH execution, cron, or systemd services).
- Move custom script and binary paths to `environment.extraInit` so all
  subshells and non-interactive sessions inherit the correct $PATH.
This commit is contained in:
kiskaadee committed 2026-09-14 23:34:49 -05:00
1 parent 431413ec1a
commit 8134070398
2 files changed
+10

No files matched your search

+4
View File
@@ -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
+6
View File
@@ -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 = {