services.kiwix-serve.library

NixOS option

A set of ZIM files to serve. The key is used as the name for the ZIM files (e.g. in the example, the files will be served as wikipedia.zim and nix.zim). Exclusive with services.kiwix-serve.libraryPath.

type: attribute set of absolute path
Default
{ }
Example
{
  wikipedia = "/data/wikipedia_en_all_maxi_2026-02.zim";
  nix = pkgs.fetchurl {
    url = "https://download.kiwix.org/zim/devdocs/devdocs_en_nix_2026-01.zim";
    hash = "sha256-QxB9qDKSzzEU8t4droI08BXdYn+HMVkgiJMO3SoGTqM=";
  };
}
declared in: nixos/modules/services/misc/kiwix-serve.nixView source on NixOS/nixpkgs →