move swaggerUiTheme nix option out of c0re's namespace
services.hyperhive.c0re.swaggerUiTheme -> services.hyperhive.gateway.swaggerUiTheme. hive-c0re has no relationship to this option (it's consumed entirely by the gateway's nginx config) since the previous two commits moved the theme files out of hive-c0re/ and gateway to hosting the whole dist itself — the option shouldn't live in c0re's namespace either. Pure option move: default wiring in flake.nix now sets services.hyperhive.gateway.swaggerUiTheme instead of the c0re one; hive-gateway/default.nix reads it via the module's own already-bound cfg (services.hyperhive.gateway) instead of reaching into c0re's. Verified: nix build .#swagger-ui-theme unaffected (same store path, pure option-plumbing change, no content change); a full nixosSystem eval of nixosModules.default resolves the option at its new path and confirms the gateway's /api/docs/ location still aliases the correct store path.
This commit is contained in:
parent
3ef166738c
commit
9efe6f64b6
4 changed files with 21 additions and 16 deletions
|
|
@ -65,19 +65,6 @@
|
|||
processes to their icon.
|
||||
'';
|
||||
};
|
||||
swaggerUiTheme = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
defaultText = lib.literalExpression "hyperhive.packages.\${system}.swagger-ui-theme";
|
||||
description = ''
|
||||
Full Swagger UI static dist, hyperhive-themed (see
|
||||
`nix/packages/swagger-ui-theme.nix`, built on
|
||||
`nix/packages/swagger-ui-dist.nix`). hive-gateway serves this
|
||||
whole tree directly at `/api/docs/` — hive-c0re hosts none of
|
||||
it, only the dynamic `/api/openapi.json` route. Override to
|
||||
ship a custom theme (or the plain vendored dist) without a
|
||||
hive-c0re rebuild.
|
||||
'';
|
||||
};
|
||||
hyperhiveFlake = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
defaultText = lib.literalMD "the hyperhive flake's own filtered source store path";
|
||||
|
|
|
|||
Loading…
Reference in a new issue