nix/harness: ExecStartPre chown /run/hive to agent user (#658 fixup)
This commit is contained in:
parent
ed046787e0
commit
de3f541729
3 changed files with 16 additions and 12 deletions
|
|
@ -48,6 +48,14 @@ in
|
|||
ExecStart = "${pkgs.hyperhive}/bin/hive-m1nd serve";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 2;
|
||||
# `/run/hive` is bind-mounted from the host root-owned 0755
|
||||
# (hive-c0re's `set_nspawn_flags`). Post-#658 the harness
|
||||
# runs as the per-agent user and needs to drop mcp.sock +
|
||||
# claude-{mcp-config,settings,system-prompt} files there.
|
||||
# `+` runs ExecStartPre as root (before the User= drop) so
|
||||
# we can chown the bind onto the agent user every start —
|
||||
# robust against activation-script timing on first boot.
|
||||
ExecStartPre = "+${pkgs.coreutils}/bin/chown ${userName}:${userName} /run/hive";
|
||||
# Same drop-from-root as agent-base.nix (#658). Manager
|
||||
# interactions with the host (rebuild approvals, config
|
||||
# writes) still happen via the dedicated unix sockets
|
||||
|
|
|
|||
Loading…
Reference in a new issue