From bdf03526910893deefbb2d91c35538b8d76cb87c Mon Sep 17 00:00:00 2001 From: soraefir Date: Mon, 1 Jun 2026 21:04:59 +0200 Subject: [PATCH] fix home ? --- modules/server/containers/apps/homepage.nix | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/modules/server/containers/apps/homepage.nix b/modules/server/containers/apps/homepage.nix index f3d5391..367c06b 100644 --- a/modules/server/containers/apps/homepage.nix +++ b/modules/server/containers/apps/homepage.nix @@ -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;