fix home ?

This commit is contained in:
soraefir
2026-06-01 21:04:59 +02:00
parent 14862f7de3
commit bdf0352691

View File

@@ -36,18 +36,6 @@ let
showStats = false;
statusStyle = "dot";
hideErrors = true;
auth = lib.flatten [{}
(lib.optional (serverCfg.containers?authentik) {
oidc = {
enabled = true;
provider = "authentik";
issuerUrl = "https://${serverCfg.containers.authentik.subdomain}.${serverCfg.domain}";
clientId = "homepage";
clientSecret = "{{HOMEPAGE_VAR_OAUTH_SECRET}}";
groupsProperty = "groups";
};
})];
};
widgets = pkgs.writers.writeYAML "widgets.yaml" [
{openmeteo = {
@@ -57,17 +45,16 @@ let
units = "metric";
cache = "15";
};}
{search = lib.flatten [{
{search = {
provider = "custom";
focus = true;
showSearchSuggestions = true;
target = "_blank";
}
(lib.optional (serverCfg.containers?searxng) {
} // (lib.optionalAttrs (serverCfg.containers?searxng) {
url = "https://${serverCfg.containers.searxng.subdomain}.${serverCfg.domain}/search?q=";
suggestionUrl = "https://${serverCfg.containers.searxng.subdomain}.${serverCfg.domain}/autocompleter?q=";
})
];}
}
{stocks = {
provider = "finnhub";
color = true;