Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/hive-meta-flake
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-03 07:41:29 +01:00
..
src hive-forge: require HIVE_FORGE_URL, give agent login shells the forge env 2026-11-03 07:41:29 +01:00
testdata hive-forge: require HIVE_FORGE_URL, give agent login shells the forge env 2026-11-03 07:41:29 +01:00
Cargo.toml move the meta flake render into the hive-meta-flake crate 2026-10-24 21:13:24 +02:00
README.md pin the declared closure once per rebuild and seed the marker from the running closure 2026-11-02 07:55:10 +01:00

hive-meta-flake

The meta flake's flake.nix text: one nixosConfigurations.<agent> per agent, each built from hyperhive's agent-base plus the agent's config input or archetype.

Pure string rendering, with no IO and no environment reads. The caller passes the hyperhive pin, the agents with their pins, and the values every agent container gets. swarm-controller calls render_flake and reads the pins of the flake it renders (pinned_rev). hive-c0re uses only the agent spec and port helpers.

testdata/meta-flake.nix.in is the render for one archetype agent with a placeholder for the hyperhive pin. A unit test keeps it equal to render_flake's output, and the swarm-builder-offline VM test (nix/vm-tests/) serves it.