fix: give hive-bash-daemon PATH so it can spawn sh + agent tooling
This commit is contained in:
parent
872d605b4e
commit
3bb45acd87
1 changed files with 12 additions and 0 deletions
|
|
@ -1147,6 +1147,18 @@ in
|
|||
systemd.services.hive-bash-daemon = {
|
||||
description = "bash task runner daemon for hive-bash-mcp";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
# The daemon runs every bash task via `Command::new("sh")` and the
|
||||
# commands themselves (hive-forge, git, jq, …) resolve from PATH.
|
||||
# Pre-split this ran inside hive-ag3nt.service and inherited the
|
||||
# agent's PATH; the standalone daemon needs the same or `sh` itself
|
||||
# isn't found (spawn fails with ENOENT, the task is marked done in
|
||||
# 0s with no output / no .out/.err). Mirror the harness unit's PATH:
|
||||
# NixOS appends `/bin` to each entry → /run/wrappers/bin (setuid
|
||||
# sudo) + /run/current-system/sw/bin (sh, coreutils, hive-forge, …).
|
||||
path = [
|
||||
"/run/wrappers"
|
||||
"/run/current-system/sw"
|
||||
];
|
||||
environment = {
|
||||
HIVE_BASH_SOCKET = "/run/hive-bash/socket";
|
||||
HIVE_CONTROL_SOCKET = "/run/hive/mcp.sock";
|
||||
|
|
|
|||
Loading…
Reference in a new issue