Watch
0
0
Fork
You've already forked hyperhive
0

nix: split hive-matrix into service and deploy-mode files

`swarm.matrix` (what the homeserver is to every hive: server name, ports,
API URL, gateway host, encryption policy, OIDC client id) moves to
nix/host-modules/hive-matrix-service.nix. Everything else -- the
`imports` block with its two renames and the removed `sso.enable`, the
`deploy.matrix` options, the whole `config` block including
`containers.hive-matrix`, and every other let binding -- stays in
nix/host-modules/hive-matrix.nix, which default.nix now imports alongside
the new file.

The `swarm.matrix` block reads three let bindings, and the `config` block
reads all three too: `cfg` (`apiUrl` defaults from `cfg.httpPort`),
`swarmDomain` (`gatewayHost`'s default) and `deployCfg` (`apiUrl` reads
`deployCfg.matrix.enable`). All three are option reads, so each file binds
them from `config.services.hyperhive.*`. Nothing is duplicated.

A pure move: option paths, option definitions and config are unchanged
apart from the comment above `deploy.matrix`, which now names the file
`swarm.matrix` lives in.

Refs #3742
This commit is contained in:
atlas 2026-10-01 09:57:47 +02:00 • committed by mara
commit a539dceab1
3 changed files with 195 additions and 179 deletions

View file

@ -20,6 +20,7 @@
./hive-ci.nix
./hive-forge
./hive-gateway
./hive-matrix-service.nix
./hive-matrix.nix
./hive-network.nix
./hive-priv.nix