From 47ab6fa14226df4dded999228f543470f43e4560 Mon Sep 17 00:00:00 2001 From: blake Date: Sat, 11 Oct 2025 15:30:35 -0500 Subject: [PATCH] 299 current 2025-10-11 14:41:20 25.05.20251006.20c4598 6.12.50 * --- modules/homelab/services/glance/default.nix | 38 ++++++++++----------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/modules/homelab/services/glance/default.nix b/modules/homelab/services/glance/default.nix index 30ce449..7d9492a 100644 --- a/modules/homelab/services/glance/default.nix +++ b/modules/homelab/services/glance/default.nix @@ -36,15 +36,12 @@ in default = true; description = "enable backups for ${service}"; }; - pages = lib.mkOption { - type = lib.types.attrsOf (lib.types.submodule { - options.description = lib.mkOption { type = lib.types.str; }; - options.url = lib.mkOption { type = lib.types.str; }; - options.icon = lib.mkOption { type = lib.types.str; }; - options.category = lib.mkOption { type = lib.types.str; }; - }); - default = {}; - description = "configure the service for use in ${service}"; + links = { + mediastack = lib.mkOption { + type = lib.types.listOf lib.types.attrs; + default = []; + description = "list of links for ${service}"; + }; }; }; @@ -111,17 +108,18 @@ in type = "monitor"; cache = "1m"; title = "mediastack"; - sites = [ - { title = "jellyfin"; url = "https://media.blakedheld.xyz"; icon = "di:jellyfin"; } - { title = "audiobookshelf"; url = "https://audiobooks.blakedheld.xyz"; icon = "di:audiobookshelf"; } - { title = "yacreader"; url = "http://10.10.0.30:3434"; icon = "/assets/icons/yacreader.png"; } - { title = "sonarr"; url = "http://10.10.0.30:3636"; icon = "di:sonarr"; } - { title = "qbittorrent"; url = "http://10.10.0.40:3333"; icon = "di:qbittorrent"; } - { title = "radarr"; url = "http://10.10.0.30:3737"; icon = "di:radarr"; } - { title = "kiwix"; url = "http://10.10.0.30:5050"; icon = "di:kiwix"; } - { title = "prowlarr"; url = "http://10.10.0.30:3535"; icon = "di:prowlarr"; } - { title = "bazarr"; url = "http://10.10.0.30:3838"; icon = "di:bazarr"; } - ]; + sites = cfg.links.mediastack; +# sites = [ +# { title = "jellyfin"; url = "https://media.blakedheld.xyz"; icon = "di:jellyfin"; } +# { title = "audiobookshelf"; url = "https://audiobooks.blakedheld.xyz"; icon = "di:audiobookshelf"; } +# { title = "yacreader"; url = "http://10.10.0.30:3434"; icon = "/assets/icons/yacreader.png"; } +# { title = "sonarr"; url = "http://10.10.0.30:3636"; icon = "di:sonarr"; } +# { title = "qbittorrent"; url = "http://10.10.0.40:3333"; icon = "di:qbittorrent"; } +# { title = "radarr"; url = "http://10.10.0.30:3737"; icon = "di:radarr"; } +# { title = "kiwix"; url = "http://10.10.0.30:5050"; icon = "di:kiwix"; } +# { title = "prowlarr"; url = "http://10.10.0.30:3535"; icon = "di:prowlarr"; } +# { title = "bazarr"; url = "http://10.10.0.30:3838"; icon = "di:bazarr"; } +# ]; } { type = "monitor";