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

View file

@ -37,21 +37,14 @@ let
# Stub host system: every hyperhive subsystem `mkForce false` so
# heavy build inputs (matrix container, forge, etc.) stay out of
# the eval — only option *declarations* matter for the doc walk.
# Import hive-c0re.nix from the content-addressed nixSrc with stub
# package args so the eval doesn't depend on self's Rust builds.
# Import the host-module aggregator from the content-addressed
# nixSrc; the package options (`services.hyperhive.c0re.package`
# etc.) carry no in-module defaults, but with hyperhive disabled
# nothing reads them, so no stubs are needed.
hostEval = nixosSystem {
system = pkgs.stdenv.hostPlatform.system;
modules = [
(import "${nixSrc}/modules/hive-c0re.nix" {
hyperhivePackage = _system: pkgs.emptyFile;
hyperhiveFrontend = _system: pkgs.emptyFile;
hyperhiveAssets = _system: pkgs.emptyDirectory;
hyperhiveFlake = "";
hyperhiveDocs = "";
hyperhiveXdgIcons = _system: pkgs.emptyFile;
agentBaseToplevel = pkgs.emptyFile;
managerToplevel = pkgs.emptyFile;
})
"${nixSrc}/modules"
(
{ lib, ... }:
{