From b34936881824f836cc57cfb3ea800c0e87b7efe7 Mon Sep 17 00:00:00 2001 From: Dennis Schoepf Date: Fri, 14 Nov 2025 23:13:56 +0100 Subject: [PATCH] adds glance configuration --- modules/glance/default.nix | 207 +++++++++++++++++++++++++++++++++++++ 1 file changed, 207 insertions(+) create mode 100644 modules/glance/default.nix diff --git a/modules/glance/default.nix b/modules/glance/default.nix new file mode 100644 index 0000000..6fd74bd --- /dev/null +++ b/modules/glance/default.nix @@ -0,0 +1,207 @@ +{ + services.glance = { + enable = true; + settings = { + server = { + port = 9001; + }; + theme = { + background-color = 264 31.3 6.3; + primary-color = 9 92.1 85.1; + contrast-multiplier = 1.2; + positive-color = 174 100 32; + negative-color = 354 100 70.8; + disable-picker = false; + }; + pages = [ + { + name = "Home"; + columns = [ + { + size = "small" + widgets = [ + + { + type = "monitor"; + cache = "1m"; + title = "Selfhosted"; + sites = [ + { + title = "Fastmail"; + url = "https://app.fastmail.com/"; + icon = "si:protonmail"; + } + { + title = "Actual"; + url = "https://actual.dnsc.io"; + icon = "si:actualbudget"; + } + { + title = "Vaultwarden"; + url = "https://vault.dnsc.io"; + icon = "si:vaultwarden"; + } + { + title = "Uptime Kuma"; + url = "https://uptime.dnsc.io"; + icon = "si:uptimekuma"; + } + { + title = "dnsc.io"; + url = "https://dnsc.io"; + icon = "si:htmx"; + } + { + title = "Jellyfin"; + url = "http://100.103.199.4:8096"; + icon = "si:jellyfin"; + } + ]; + } + { + type = "bookmarks"; + groups = [ + { + title = "Hosting"; + color = 187 56.6 47.8; + links = [ + { + title = "Porkbun"; + url = "https://porkbun.com/account/domainsSpeedy"; + } + { + title = "Tailscale"; + url = "https://login.tailscale.com/admin/machines"; + } + { + title = "Hetzner"; + url = "https://console.hetzner.com/projects/1355757/dashboard"; + } + { + title = "Netcup"; + url = "https://www.servercontrolpanel.de/SCP/Home"; + } + ]; + } + { + title = "Dev"; + color = 319 37.6 63.5; + links = [ + { + title = "Codeberg"; + url = "https://codeberg.org/dnscio"; + } + { + title = "Github"; + url = "https://github.com/dennisschoepf?tab=repositories"; + } + ]; + } + ]; + } + ]; + } + { + size = "full"; + widgets = [ + { + type = "hacker-news"; + limit = 15; + collapse-after = 5; + } + { + type = "twitch-channels"; + channels = [ + "theprimeagen" + "tsoding" + "noway4u_sir" + "broxah" + "caedrel" + "bashbunni" + ]; + } + { + type = "group"; + widgets = [ + { + type = "rss"; + title = "r/neovim"; + single-line-titles = true; + feeds = [ + { + url = "https://www.reddit.com/r/neovim.rss"; + } + ]; + } + { + type = "rss"; + title = "r/onepiece"; + single-line-titles = true; + feeds = [ + { + url = "https://www.reddit.com/r/onepiece.rss"; + } + ]; + } + { + type = "rss"; + title = "r/triathlon"; + single-line-titles = true; + feeds = [ + { + url = "https://www.reddit.com/r/triathlon.rss"; + } + ]; + } + ]; + } + { + type = "videos"; + collapse-after = 6; + channels = [ + "UCuTaETsuCOkJ0H_GAztWt0Q" + "UCJVMrR290HU9pDxaP35u_cg" + "UCqqJQ_cXSat0KIAVfIfKkVA" + "UCdC0An4ZPNr_YiFiYoVbwaw" + "UCsXVk37bltHxD1rDPwtNM8Q" + "UCofJu853kJKpkg4y5a-9YXg" + "UCewLMcro9tNP97XQ1rxtLXQ" + "UCuo9VyowIT-ljA5G2ZuC6Yw" + "UCipCyKo5D3FyWE6_TpQyr5A" + "UCmL9OhLB27r1lTCHQ3pEiIQ" + "UCNIuvl7V8zACPpTmmNIqP2A" + "UC-gct8TB_8l5HsQHBBr8hyQ" + ]; + } + ]; + } + { + size = "small"; + widgets = [ + { + type = "server-stats"; + servers = [ + { + name = "dnsc-vps-sm"; + type = "local"; + } + ]; + } + { + type = "calendar"; + first-day-of-the-week = "monday"; + } + { + type = "weather"; + units = "metric"; + hour-format = "24h"; + location = "Munich, Germany" + } + ]; + } + ]; + } + ]; + }; + }; +}