build every agent from the agent-base template
Delete nix/templates/ruth.nix, the ruth nixosConfiguration, module and toplevel, the hive-c0re managerToplevel option, and the meta flake's isManager switch with lifecycle::MANAGER_NAME. Every agent, ruth included, now builds from nix/templates/agent.nix. The template's only content beyond agent.nix was docs.enable = mkDefault true; docs.enable is off by default for every agent and ruth's own agent.nix turns it on. Refs #5377
This commit is contained in:
parent
1f214f9f01
commit
1b60084bf0
15 changed files with 85 additions and 95 deletions
|
|
@ -183,11 +183,10 @@ sibling), one shared `nix/agent-modules/` tree, one service unit
|
|||
differences live in the agent's swarm permissions and the broker socket (which tools
|
||||
and manager-surface calls each agent receives).
|
||||
|
||||
`agent.nix` and `ruth.nix` both import the shared `nix/agent-modules/`.
|
||||
`ruth.nix` additionally defaults
|
||||
`services.hyperhive.agent.docs.enable` to `true`, so the root/manager
|
||||
gets the hyperhive reference docs readable at `$HIVE_DOCS_DIR` by
|
||||
default; other agents opt in per `agent.nix` (see
|
||||
`nix/templates/agent.nix` is the one entry point every agent builds from, and
|
||||
it imports the shared `nix/agent-modules/`.
|
||||
`services.hyperhive.agent.docs.enable` defaults to `false` for every agent,
|
||||
ruth included; an agent opts in from its own `agent.nix` (see
|
||||
[config.md](config.md), "Reference docs").
|
||||
|
||||
### Environment variables set on the unit
|
||||
|
|
|
|||
Loading…
Reference in a new issue