serve w.uninsane.org through kiwix-serve

This commit is contained in:
2022-12-16 02:25:57 +00:00
parent 199a49755a
commit 2550601179
3 changed files with 13 additions and 0 deletions

View File

@@ -10,6 +10,7 @@
./ipfs.nix ./ipfs.nix
./jackett.nix ./jackett.nix
./jellyfin.nix ./jellyfin.nix
./kiwix-serve.nix
./matrix ./matrix
./navidrome.nix ./navidrome.nix
./nginx.nix ./nginx.nix

View File

@@ -0,0 +1,8 @@
{ ... }:
{
sane.services.kiwix-serve = {
enable = true;
port = 8013;
zimPaths = [ "/var/lib/uninsane/www-archive/wikipedia_en_simple_all_mini_2022-11.zim" ];
};
}

View File

@@ -1,6 +1,10 @@
# docs: <https://nixos.wiki/wiki/MediaWiki> # docs: <https://nixos.wiki/wiki/MediaWiki>
{ config, lib, ... }: { config, lib, ... }:
# XXX: working to host wikipedia with kiwix instead of mediawiki
# mediawiki does more than i need and isn't obviously superior in any way
# except that the dumps are more frequent/up-to-date.
lib.mkIf false
{ {
sops.secrets."mediawiki_pw" = { sops.secrets."mediawiki_pw" = {
owner = config.users.users.mediawiki.name; owner = config.users.users.mediawiki.name;