From af3a35cdece0da3e430b052cc9d5a0b0b9d2e951 Mon Sep 17 00:00:00 2001 From: blake Date: Thu, 30 Jul 2026 12:36:53 -0500 Subject: [PATCH] finish up kiwix --- modules/homelab/nomad/kiwix/default.nix | 22 +++++++++++++-------- modules/homelab/services/glance/default.nix | 11 +++++++++++ 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/modules/homelab/nomad/kiwix/default.nix b/modules/homelab/nomad/kiwix/default.nix index ae02ee9..3a6e975 100644 --- a/modules/homelab/nomad/kiwix/default.nix +++ b/modules/homelab/nomad/kiwix/default.nix @@ -57,9 +57,12 @@ in { home = cfg.data_dir; createHome = true; group = service; - extraGroups = ["archives"]; + extraGroups = ["media"]; }; + # helpful and for scripts + environment.systemPackages = with pkgs; [kiwix-tools]; + # enable the ${service} service services.kiwix-serve = { enable = true; @@ -67,7 +70,7 @@ in { port = cfg.port; user = service; group = service; - library = cfg.data_dir; + libraryPath = "${cfg.data_dir}/library.xml"; extraArgs = { }; }; @@ -91,12 +94,15 @@ in { }; # add to glance (local service) - homelab.glance.links. = [{ - title = service; - url = "https://${cfg.url}"; - error-url = "http://${homelab.host_ip}:${toString cfg.port}"; - check-url = "http://${homelab.host_ip}:${toString cfg.port}"; - icon = "di:${service}"; }]; + homelab.glance.links.nomad = [ + { + title = service; + url = "https://${cfg.url}"; + error-url = "http://${homelab.host_ip}:${toString cfg.port}"; + check-url = "http://${homelab.host_ip}:${toString cfg.port}"; + icon = "di:${service}"; + } + ]; # sops.secrets = { # "${service}_" = { diff --git a/modules/homelab/services/glance/default.nix b/modules/homelab/services/glance/default.nix index d269161..fb5ab4b 100644 --- a/modules/homelab/services/glance/default.nix +++ b/modules/homelab/services/glance/default.nix @@ -77,6 +77,11 @@ in { default = []; description = "list of links for ${service}"; }; + nomad = lib.mkOption { + type = lib.types.listOf lib.types.attrs; + default = []; + description = "list of links for ${service}"; + }; }; }; @@ -244,6 +249,12 @@ in { title = "system"; sites = cfg.links.system; } + { + type = "monitor"; + cache = "1m"; + title = "system"; + sites = cfg.links.nomad; + } { type = "custom-api"; title = "recpro";