23 lines
657 B
Nix
23 lines
657 B
Nix
{ pkgs, ... }:
|
|
{
|
|
imports = [ ./harness-base.nix ];
|
|
|
|
systemd.services.hive-ag3nt = {
|
|
description = "hive-ag3nt harness";
|
|
wantedBy = [ "multi-user.target" ];
|
|
after = [ "network.target" ];
|
|
# `claude` for the turn loop + `bash` for claude's Bash tool. systemd
|
|
# units get a minimal PATH by default; entries in
|
|
# `environment.systemPackages` aren't on it.
|
|
path = [
|
|
pkgs.claude-code
|
|
pkgs.bashInteractive
|
|
];
|
|
environment.SHELL = "${pkgs.bashInteractive}/bin/bash";
|
|
serviceConfig = {
|
|
ExecStart = "${pkgs.hyperhive}/bin/hive-ag3nt serve";
|
|
Restart = "on-failure";
|
|
RestartSec = 2;
|
|
};
|
|
};
|
|
}
|