diff --git a/flake.nix b/flake.nix index 141187d8..37f2c26a 100644 --- a/flake.nix +++ b/flake.nix @@ -148,6 +148,9 @@ services.hyperhive.swarm.controller.swarmctlPackage = lib.mkDefault self.packages.${pkgs.stdenv.hostPlatform.system}.swarmctl; + services.hyperhive.swarm.ui.package = + lib.mkDefault + self.packages.${pkgs.stdenv.hostPlatform.system}.swarm-ui; services.hyperhive.gateway.swaggerUiTheme = lib.mkDefault self.packages.${pkgs.stdenv.hostPlatform.system}.swagger-ui-theme; diff --git a/nix/host-modules/swarm-ui.nix b/nix/host-modules/swarm-ui.nix index b1da263d..18820162 100644 --- a/nix/host-modules/swarm-ui.nix +++ b/nix/host-modules/swarm-ui.nix @@ -9,7 +9,6 @@ { lib, config, - pkgs, ... }: let @@ -57,12 +56,17 @@ in package = lib.mkOption { type = lib.types.package; - default = pkgs.swarm-ui; - defaultText = lib.literalExpression "pkgs.swarm-ui"; + defaultText = lib.literalExpression "hyperhive.packages.\${system}.swarm-ui"; description = '' Static build of the swarm UI. nginx serves this store path directly — there is no server-side component beyond the controller's own API. + + Wired by default from this flake's own package set (see + `flake.nix`), the same way `swarm.controller.package` is. There + is deliberately **no overlay** in this project, so a + `pkgs.swarm-ui` default here would name an attribute that does + not exist on any real deployment. ''; }; };