nix/host/x86_64-linux/home/nginx/Davis.nix

11 lines
204 B
Nix

{ config, ... }:
let
cfg = config.const.host.nginx;
in
{
"dav.${cfg.domain}" = {
inherit (cfg) sslCertificate sslCertificateKey extraConfig;
locations."/".extraConfig = cfg.allowLocal;
};
}