hyperhive/nix/modules
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 07434e8f50 gateway: hot-reload agents.conf at runtime (#869)
Replace eval-time per-agent nginx location baking with a runtime
include file. c0re writes /var/lib/hyperhive/agents.conf (nginx
location blocks, UDS or TCP per agent) on every topology change and
on the 10s marker poll. The gateway container bind-mounts
/var/lib/hyperhive/ at /run/hive-state/ and nginx includes
/run/hive-state/agents.conf. A systemd path unit inside the container
watches the file for changes and fires `nginx -s reload` on each
atomic rename from c0re — no nixos-rebuild switch needed when agents
start, stop, or flip useUnixSocket.

  - new hive-c0re/src/gateway_nginx.rs: write() + render()
  - lib.rs + meta.rs + agent_sockets::spawn_poll: hook in write()
  - hive-gateway.nix: drop agentPortsTable/agentSocketsTable/
    agentUpstreamFor/lib.mapAttrs', add /run/hive-state bind-mount,
    include directive, systemd path unit + reload service, tmpfiles
    for /var/lib/hyperhive + agents.conf seed
  - docs/gateway.md: update vhost table + Per-agent UDS section
2026-05-31 20:29:56 +02:00
..
hive-c0re.nix nix/hive-c0re: trim duplicate identity + flag prose (#718 batch 7) 2026-05-31 17:25:14 +02:00
hive-forge.nix docs/gateway.md: extract hive-c0re + hive-forge prose blocks (#718 batch 2) 2026-05-31 14:57:50 +02:00
hive-gateway.nix gateway: hot-reload agents.conf at runtime (#869) 2026-05-31 20:29:56 +02:00
hive-matrix.nix docs/matrix.md: extract hive-matrix prose (#718 batch 5) 2026-05-31 15:38:43 +02:00
hive-network.nix nix/hive-network: bridge + dnsmasq resolver, opt-in (#805 v1) 2026-05-31 16:56:59 +02:00