Files
nixos/hosts/unstable/icdm-root/wiki.nix
T

18 lines
327 B
Nix
Raw Normal View History

2026-03-10 16:52:27 -05:00
{ pkgs, ... }:
2023-03-07 17:17:24 -06:00
let
wikiHost = "wiki.icdm.lan";
kiwixport = 8080;
2023-03-07 17:17:24 -06:00
in
{
services.kiwix-serve = {
enable = true;
port = kiwixport;
2026-03-10 16:52:27 -05:00
library = {
inherit (pkgs) zim;
};
};
2023-03-07 17:17:24 -06:00
greg.proxies."${wikiHost}".target = "http://localhost:${toString kiwixport}";
networking.firewall.allowedTCPPorts = [ 80 ];
2023-03-07 17:17:24 -06:00
}