swarm-builder: give the check flake the hive's docs source
The builder's hyperhive input is the docs-stripped flake source, so an agent config with docs.enable = true failed to evaluate: docs.source defaults to reference-docs, built from the missing docs/. Pass the host's c0re.hyperhiveDocs as a hyperhive-docs input and set docs.source from it, as the hive's meta flake does. Fixes #5411
This commit is contained in:
parent
99879f850a
commit
e9c471caeb
6 changed files with 80 additions and 10 deletions
|
|
@ -89,10 +89,11 @@ let
|
|||
# The `nix` the host daemon runs, so client and daemon speak one protocol.
|
||||
nix = config.nix.package;
|
||||
|
||||
# Strings, not paths: both are already store paths, and the flake reference
|
||||
# the daemon passes must be the same one a hive's meta flake names.
|
||||
# Strings, not paths: all three are already store paths, and the flake
|
||||
# references the daemon passes must be the ones a hive's meta flake names.
|
||||
hyperhiveFlake = hyperhiveCfg.c0re.hyperhiveFlake;
|
||||
nixpkgsFlake = hyperhiveCfg.c0re.nixpkgsFlake;
|
||||
docsFlake = hyperhiveCfg.c0re.hyperhiveDocs;
|
||||
|
||||
privateNetwork = true;
|
||||
in
|
||||
|
|
@ -253,6 +254,7 @@ in
|
|||
SWARM_BUILDER_CHECK_FLAKE = "${../builder/check-flake}";
|
||||
SWARM_BUILDER_HYPERHIVE_FLAKE = hyperhiveFlake;
|
||||
SWARM_BUILDER_NIXPKGS_FLAKE = nixpkgsFlake;
|
||||
SWARM_BUILDER_HYPERHIVE_DOCS_FLAKE = docsFlake;
|
||||
SWARM_BUILDER_FORGE_URL = "https://${forgeCfg.domain}";
|
||||
SWARM_BUILDER_CONFIG_ORG = "agent-configs";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue