feat(nixos): expose appctl and paths to non-interactive shells
Core Architecture & Invariant CI / validate (push) Successful in 9m40s
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:
1 parent
431413ec1a
commit
8134070398
2 files changed
+10
No files matched your search
@@ -102,6 +102,10 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
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
|
# Monitoring & diagnostics
|
||||||
htop
|
htop
|
||||||
iotop
|
iotop
|
||||||
|
|||||||
@@ -20,6 +20,12 @@
|
|||||||
qpdf # PDF decryption (used by pdf_dc function)
|
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 ────────────────────────────────────────────────────────
|
# ── Bash configuration ────────────────────────────────────────────────────────
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
|
|||||||
Reference in new issue
Block a user