module: thread hyperhive package directly — operators don't apply overlays

This commit is contained in:
müde 2026-05-15 16:51:18 +02:00
parent 8dc9b24934
commit 4f91dfef99
6 changed files with 23 additions and 25 deletions

View file

@ -79,8 +79,17 @@
nixosModules = {
agent-base = ./nix/templates/agent-base.nix;
hive-c0re = ./nix/modules/hive-c0re.nix;
manager = ./nix/templates/manager.nix;
# The hive-c0re module wants `pkgs.hyperhive` for its default
# `services.hive-c0re.package`. To avoid making operators apply an
# overlay (which would also pollute their host pkgs with our
# build), we thread the package straight from this flake's
# `packages.<system>.default` via a `hyperhivePackage` argument.
# The `claude-unstable` overlay only matters inside our container
# builds (already applied internally in `nixosConfigurations`).
hive-c0re = import ./nix/modules/hive-c0re.nix {
hyperhivePackage = system: self.packages.${system}.default;
};
};
nixosConfigurations =