refactor: split hive-c0re module, aggregate host stack in nix/modules

This commit is contained in:
müde 2026-07-13 21:37:47 +02:00
commit e7689a6804
7 changed files with 596 additions and 546 deletions

25
nix/modules/default.nix Normal file
View file

@ -0,0 +1,25 @@
# The full hyperhive host stack, pulled together in one place — this
# is what the flake exports as `nixosModules.default` (wrapped with
# the package/source wiring; see flake.nix). One import covers
# everything; `services.hyperhive.enable = true` turns the stack on.
#
# The forge is mandatory — hive-c0re mirrors every agent's applied
# config repo into it and it's the canonical store for the meta flake
# + `internal/*` repos, so there's no enable toggle; it deploys with
# hyperhive itself. hive-matrix is opt-in (off by default). All
# subsystems rely on `services.hyperhive.domain`, which is required
# (asserted in hive-network.nix) whenever hyperhive is enabled.
{
imports = [
./hyperhive.nix
./hive-c0re
./hive-ci.nix
./hive-forge.nix
./hive-gateway
./hive-matrix.nix
./hive-network.nix
./hive-tls.nix
./otel.nix
./swarm.nix
];
}