hyperhive/nix/modules
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 4f446269ae fix: re-run hive-ci-prefetch on every container restart via partOf
The hive-ci-prefetch oneshot has RemainAfterExit=true and is wired to the
container only via wantedBy + before. Once it runs successfully it stays
'active (exited)' indefinitely, so systemd skips it on subsequent container
restarts. The runner-token file it wrote is never refreshed.

This breaks the runner after its first registration: the token written on
the first successful boot is either a placeholder (forge-core-token wasn't
ready yet) or a registration token that has since been consumed/rotated.
On the next container restart prefetch does not re-run, the stale token
persists, and the in-container register service fails with
'invalid_argument: runner registration token not found' — exactly the
symptom in the field (worked briefly, two orphan runners registered, then
permanently offline).

Add partOf = [ nixos-container@hive-ci.service ] so a container stop/restart
propagates to the prefetch unit, forcing it to re-run and fetch a fresh
registration token before the container comes back up. before= still orders
it ahead of the container start within the same transaction.
2026-06-05 00:39:13 +02:00
..
hive-c0re.nix fix: add /var/lib/hyperhive to hive-priv ReadWritePaths 2026-06-04 15:35:46 +02:00
hive-ci.nix fix: re-run hive-ci-prefetch on every container restart via partOf 2026-06-05 00:39:13 +02:00
hive-forge.nix fix(#981): enable Forgejo Actions so runner registration token API works 2026-06-01 18:38:44 +02:00
hive-gateway.nix fix(#1263): repeat security headers in locations with their own add_header 2026-06-04 14:35:18 +02:00
hive-matrix.nix fix(#1061): suppress tuwunel default displayname suffix 2026-06-02 11:18:38 +02:00
hive-network.nix refactor: remove hyperhive.role option — there is only one role: agent 2026-06-04 14:31:44 +02:00