nix-config/modules/data-hoarder/documentation.nix
2022-09-04 15:06:02 +02:00

24 lines
524 B
Nix

{ pkgs, config, lib, ... }:
let
documentation-package = pkgs.callPackage ../../pkgs/documentation.nix { };
in {
services = {
nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts = {
"docs.${config.dump-dvb.domain}" = {
enableACME = true;
forceSSL = true;
locations = {
"/" = {
root = "${documentation-package}/bin/";
index = "index.html";
};
};
};
};
};
};
}