finish up kiwix

This commit is contained in:
2026-07-30 12:36:53 -05:00
parent 4e0c40e83b
commit af3a35cdec
2 changed files with 25 additions and 8 deletions
+14 -8
View File
@@ -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.<category> = [{
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}_" = {