diff --git a/nix/modules/orchestrator-host.nix b/nix/modules/orchestrator-host.nix index 207a0eb..056fa5b 100644 --- a/nix/modules/orchestrator-host.nix +++ b/nix/modules/orchestrator-host.nix @@ -288,7 +288,8 @@ SSHCFG User = "loops"; Group = "users"; WorkingDirectory = "/srv/cc-ci-orch/cc-ci"; EnvironmentFile = [ "-/srv/cc-ci/cc-ci/.env.public" "/srv/cc-ci/.testenv" ]; - ExecStartPre = "${pkgs.coreutils}/bin/rm -rf /tmp/opencode"; + # Test tools can leave root-owned files here; only cleanup needs root. + ExecStartPre = "+${pkgs.coreutils}/bin/rm -rf /tmp/opencode"; ExecStart = "/home/loops/.local/bin/opencode serve --hostname 127.0.0.1 --port 4096"; Restart = "on-failure"; RestartSec = "5s";