Update modules/server/containers/apps/homepage.nix
This commit is contained in:
@@ -36,7 +36,8 @@ let
|
|||||||
showStats = false;
|
showStats = false;
|
||||||
statusStyle = "dot";
|
statusStyle = "dot";
|
||||||
hideErrors = true;
|
hideErrors = true;
|
||||||
auth = {
|
auth = lib.flatten [{}
|
||||||
|
(lib.optional (serverCfg.containers?authentik) {
|
||||||
oidc = {
|
oidc = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
provider = "authentik";
|
provider = "authentik";
|
||||||
@@ -46,7 +47,7 @@ let
|
|||||||
groupsProperty = "groups";
|
groupsProperty = "groups";
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
})];
|
||||||
};
|
};
|
||||||
widgets = pkgs.writers.writeYAML "widgets.yaml" [
|
widgets = pkgs.writers.writeYAML "widgets.yaml" [
|
||||||
{openmeteo = {
|
{openmeteo = {
|
||||||
@@ -56,16 +57,17 @@ let
|
|||||||
units = "metric";
|
units = "metric";
|
||||||
cache = "15";
|
cache = "15";
|
||||||
};}
|
};}
|
||||||
{search = {
|
{search = lib.flatten [{
|
||||||
provider = "custom";
|
provider = "custom";
|
||||||
focus = true;
|
focus = true;
|
||||||
showSearchSuggestions = true;
|
showSearchSuggestions = true;
|
||||||
target = "_blank";
|
target = "_blank";
|
||||||
|
}
|
||||||
|
(lib.optional (serverCfg.containers?searxng) {
|
||||||
url = "https://${serverCfg.containers.searxng.subdomain}.${serverCfg.domain}/search?q=";
|
url = "https://${serverCfg.containers.searxng.subdomain}.${serverCfg.domain}/search?q=";
|
||||||
suggestionUrl = "https://${serverCfg.containers.searxng.subdomain}.${serverCfg.domain}/autocompleter?q=";
|
suggestionUrl = "https://${serverCfg.containers.searxng.subdomain}.${serverCfg.domain}/autocompleter?q=";
|
||||||
|
})
|
||||||
};}
|
];}
|
||||||
{stocks = {
|
{stocks = {
|
||||||
provider = "finnhub";
|
provider = "finnhub";
|
||||||
color = true;
|
color = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user