From 84ba07b0355d5eb305d99a7e6a8407a1286711d4 Mon Sep 17 00:00:00 2001 From: blake Date: Wed, 1 Jul 2026 23:00:47 -0500 Subject: [PATCH] finish craftoria --- modules/gameservers/minecraft_modded/default.nix | 1 + modules/homelab/services/glance/default.nix | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/gameservers/minecraft_modded/default.nix b/modules/gameservers/minecraft_modded/default.nix index 1e02215..47c678c 100644 --- a/modules/gameservers/minecraft_modded/default.nix +++ b/modules/gameservers/minecraft_modded/default.nix @@ -76,6 +76,7 @@ in { description = "minecraft_recpro: ${name}"; after = ["network.target"]; wants = ["network.target"]; + path = [pkgs.openjdk21]; serviceConfig = { User = "minecraft"; Group = "minecraft"; diff --git a/modules/homelab/services/glance/default.nix b/modules/homelab/services/glance/default.nix index 0043a86..a272bc7 100644 --- a/modules/homelab/services/glance/default.nix +++ b/modules/homelab/services/glance/default.nix @@ -251,12 +251,12 @@ 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 = "cobblemon"; - # url = "https://api.mcstatus.io/v2/status/java/cobblemon.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 = "craftoria"; + 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
"; # } ]; }