From 688c96ae9adfa7b4b79eceec37e61eae2f559ee6 Mon Sep 17 00:00:00 2001 From: blake Date: Sun, 23 Aug 2026 12:43:27 -0500 Subject: [PATCH] update glance for service move --- modules/homelab/services/glance/default.nix | 38 ++++++++++++++------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/modules/homelab/services/glance/default.nix b/modules/homelab/services/glance/default.nix index fb5ab4b..b10f48e 100644 --- a/modules/homelab/services/glance/default.nix +++ b/modules/homelab/services/glance/default.nix @@ -249,12 +249,6 @@ in { title = "system"; sites = cfg.links.system; } - { - type = "monitor"; - cache = "1m"; - title = "system"; - sites = cfg.links.nomad; - } { type = "custom-api"; title = "recpro"; @@ -262,13 +256,13 @@ in { cache = "5s"; template = "
\n
\n {{ if .JSON.Bool \"online\" }}\n \n {{ else }}\n \n \n \n {{ end }}\n
\n\n
\n \n {{ .JSON.String \"host\" }}\n {{ if .JSON.Bool \"online\" }}\n \n {{ else }}\n \n {{ end }}\n \n\n
    \n
  • \n {{ if .JSON.Bool \"online\" }}\n {{ .JSON.String \"version.name_clean\" }}\n {{ else }}\n Offline\n {{ end }}\n
  • \n {{ if .JSON.Bool \"online\" }}\n
  • \n
    \n {{ range .JSON.Array \"players.list\" }}{{ .String \"name_clean\" }}
    {{ end }}\n
    \n

    \n \n \n \n {{ .JSON.Int \"players.online\" | formatNumber }}/{{ .JSON.Int \"players.max\" | formatNumber }} players\n

    \n
  • \n {{ else }}\n
  • \n

    \n \n \n \n 0 players\n

    \n
  • \n {{ end }}\n
\n
\n
"; } - { - type = "custom-api"; - title = "linggango"; - url = "https://api.mcstatus.io/v2/status/java/raceraskedforthisenjoyyall.recoil.pro"; - cache = "5s"; - template = "
\n
\n {{ if .JSON.Bool \"online\" }}\n \n {{ else }}\n \n \n \n {{ end }}\n
\n\n
\n \n {{ .JSON.String \"host\" }}\n {{ if .JSON.Bool \"online\" }}\n \n {{ else }}\n \n {{ end }}\n \n\n
    \n
  • \n {{ if .JSON.Bool \"online\" }}\n {{ .JSON.String \"version.name_clean\" }}\n {{ else }}\n Offline\n {{ end }}\n
  • \n {{ if .JSON.Bool \"online\" }}\n
  • \n
    \n {{ range .JSON.Array \"players.list\" }}{{ .String \"name_clean\" }}
    {{ end }}\n
    \n

    \n \n \n \n {{ .JSON.Int \"players.online\" | formatNumber }}/{{ .JSON.Int \"players.max\" | formatNumber }} players\n

    \n
  • \n {{ else }}\n
  • \n

    \n \n \n \n 0 players\n

    \n
  • \n {{ end }}\n
\n
\n
"; - } + # { + # type = "custom-api"; + # title = "linggango"; + # url = "https://api.mcstatus.io/v2/status/java/raceraskedforthisenjoyyall.recoil.pro"; + # cache = "5s"; + # template = "
\n
\n {{ if .JSON.Bool \"online\" }}\n \n {{ else }}\n \n \n \n {{ end }}\n
\n\n
\n \n {{ .JSON.String \"host\" }}\n {{ if .JSON.Bool \"online\" }}\n \n {{ else }}\n \n {{ end }}\n \n\n
    \n
  • \n {{ if .JSON.Bool \"online\" }}\n {{ .JSON.String \"version.name_clean\" }}\n {{ else }}\n Offline\n {{ end }}\n
  • \n {{ if .JSON.Bool \"online\" }}\n
  • \n
    \n {{ range .JSON.Array \"players.list\" }}{{ .String \"name_clean\" }}
    {{ end }}\n
    \n

    \n \n \n \n {{ .JSON.Int \"players.online\" | formatNumber }}/{{ .JSON.Int \"players.max\" | formatNumber }} players\n

    \n
  • \n {{ else }}\n
  • \n

    \n \n \n \n 0 players\n

    \n
  • \n {{ end }}\n
\n
\n
"; + # } ]; } { @@ -346,6 +340,24 @@ in { }; }; + # add to vaniville services to glance + homelab.glance.links.services = [ + { + title = "vaultwarden"; + url = "https://pass.${homelab.public_domain}"; + error-url = "https://pass.vaniville.${homelab.public_domain}"; + check-url = "https://pass.${homelab.public_domain}"; + icon = "di:${service}"; + } + { + title = service; + url = "https://git.${homelab.public_domain}"; + error-url = "https://git.vaniville.${homelab.public_domain}"; + check-url = "https://git.${homelab.public_domain}"; + icon = "di:${service}"; + } + ]; + # add to udr to glance homelab.glance.links.system = [ {