From 4cc62f1aeffb89f0d3e5c46b91d518a4397ce8fa Mon Sep 17 00:00:00 2001 From: = <=> Date: Sun, 9 Feb 2025 00:40:25 +0100 Subject: [PATCH] First test --- hosts/caddy/dashy-settings.nix | 94 +++++++++++++++++++++++++++++----- 1 file changed, 81 insertions(+), 13 deletions(-) diff --git a/hosts/caddy/dashy-settings.nix b/hosts/caddy/dashy-settings.nix index f0a2400..743c920 100644 --- a/hosts/caddy/dashy-settings.nix +++ b/hosts/caddy/dashy-settings.nix @@ -1,32 +1,40 @@ +let + p = import ../parameters.nix; +in { - appConfig = { - cssThemes = [ - "example-theme-1" - "example-theme-2" - ]; enableFontAwesome = true; fontAwesomeKey = "e9076c7025"; theme = "thebe"; + statusCheck = true; + auth = { + enableOidc = true; + oidc = { + clientId = "FiIJTqBIlMKmeSBjznUFgXIJadt71av8dfICvZvf"; + endpoint = "https://auth.pasetto.me/application/o/dashy/"; + }; + }; + webSearch = { + searchEngine = "custom"; + customSearchEngine = "https://search.${p.domains.ts}/search?q="; + }; }; + pageInfo = { - description = "My Awesome Dashboard"; + description = "Pasetto's Homelab"; navLinks = [ { path = "/"; title = "Home"; } { - path = "https://example.com"; - title = "Example 1"; - } - { - path = "https://example.com"; - title = "Example 2"; + path = "https://gitlab.com/pazpi/nix"; + title = "Source Code"; } ]; - title = "Dashy"; + title = "Homelab? Homepage!"; }; + sections = [ { displayData = { @@ -65,8 +73,68 @@ title = "Demo 2"; url = "https://dashy-demo-2.as93.net"; } + { + description = "Proxmox"; + icon = "fab fa-linux"; + target = "newtab"; + title = "Proxmox"; + url = "https://192.168.1.177:8006"; + } ]; name = "Getting Started"; } + { + name = "Public Services"; + displayData = { + cols = 1; + collapsed = false; + }; + items = [ + { + title = "Nextcloud"; + url = "https://cloud.${p.domains.public}"; + icon = "hl-nextcloud"; + } + { + title = "Vaultwarden"; + url = "https://vault.${p.domains.public}"; + icon = "hl-vaultwarden"; + } + ]; + } + { + name = "Private Services"; + displayData = { + cols = 1; + collapsed = false; + }; + items = [ + { + title = "Searx"; + url = "https://search.${p.domains.ts}"; + icon = "hl-searxng"; + } + ]; + } + { + name = "Monitoring Services"; + displayData = { + cols = 1; + collapsed = false; + }; + items = [ + { + title = "Grafana"; + url = "https://grafana.${p.domains.ts}"; + icon = "hl-grafana"; + } + { + title = "Prometheus"; + url = "https://prometheus.${p.domains.ts}"; + icon = "hl-prometheus"; + } + ]; + } + ]; }