feat: poll forge notifications in agent harness

Closes #27
This commit is contained in:
damocles 2026-05-20 17:54:28 +02:00 committed by Mara
parent a4706d793e
commit cddaacd12f
8 changed files with 913 additions and 9 deletions

View file

@ -112,7 +112,13 @@ in
pkgs.git
"/run/current-system/sw"
];
environment.HYPERHIVE_GIT = "${pkgs.git}/bin/git";
environment = {
HYPERHIVE_GIT = "${pkgs.git}/bin/git";
} // lib.optionalAttrs config.hyperhive.forge.enable {
# Agents poll this URL for Forgejo notifications. Derived from
# hyperhive.forge.{domain,httpPort} so it tracks forge config changes.
HIVE_FORGE_URL = "http://${config.hyperhive.forge.domain}:${toString config.hyperhive.forge.httpPort}";
};
serviceConfig = {
ExecStart = "${cfg.package}/bin/hive-c0re --socket /run/hyperhive/host.sock serve --hyperhive-flake ${cfg.hyperhiveFlake} --dashboard-port ${toString cfg.dashboardPort} --operator-pronouns ${lib.escapeShellArg cfg.operatorPronouns} --context-window-tokens ${lib.escapeShellArg (builtins.toJSON cfg.contextWindowTokens)}";
Restart = "on-failure";