hive-gateway: serve the swagger-ui theme via nginx alias, not a c0re build hook
This commit is contained in:
parent
5471b49f2a
commit
de1659d10e
7 changed files with 117 additions and 8 deletions
|
|
@ -65,6 +65,19 @@
|
|||
processes to their icon.
|
||||
'';
|
||||
};
|
||||
swaggerUiTheme = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
defaultText = lib.literalExpression "hyperhive.packages.\${system}.swagger-ui-theme";
|
||||
description = ''
|
||||
Swagger UI re-theme static override files (see
|
||||
`nix/packages/swagger-ui-theme.nix`; output has `index.html` +
|
||||
`hyperhive-theme.css`). The hive-gateway module `alias`es these
|
||||
two files straight from the store over `/api/docs/`, so a theme
|
||||
tweak is a gateway config change — hive-c0re's own vendored
|
||||
Swagger UI build is untouched. Override to ship a custom theme
|
||||
(or the vendored default) 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