fmt
This commit is contained in:
@@ -147,6 +147,20 @@ rec {
|
||||
"Extra environment variables passed to the service";
|
||||
|
||||
reverseProxy = mkReverseProxyOpt name;
|
||||
|
||||
hostedService = {
|
||||
enable = mkBoolOpt false "Expose this service in Glance dashboard";
|
||||
title = mkOpt types.str name "Display title in Glance";
|
||||
icon = mkOpt types.str "si:glance" "Icon identifier for Glance (e.g. si:actualbudget)";
|
||||
group = mkOpt types.str "Services" "Glance group/category for this service";
|
||||
url = mkOpt types.str (
|
||||
if cfg.reverseProxy.enable then
|
||||
"https://${cfg.reverseProxy.subdomain}.${cfg.reverseProxy.domain}"
|
||||
else
|
||||
"http://127.0.0.1:${toString cfg.port}"
|
||||
) "Service URL for Glance (auto-derived from reverseProxy if enabled)";
|
||||
basicAuth = mkOpt types.bool false "Require basic auth for this service in Glance";
|
||||
};
|
||||
}
|
||||
// options;
|
||||
};
|
||||
@@ -298,6 +312,8 @@ rec {
|
||||
# ---------------------------------------------------------------------------
|
||||
# Option creation helpers
|
||||
# ---------------------------------------------------------------------------
|
||||
# Option creation helpers
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
mkOpt =
|
||||
type: default: description:
|
||||
|
||||
Reference in New Issue
Block a user