{ config, ... }: { services.nginx.virtualHosts.dav = { serverName = "dav.${config.networking.domain}"; enableACME = true; forceSSL = true; locations."/" = { proxyPass = "http://localhost:5232/"; # default radicale host extraConfig = '' proxy_redirect default; ''; }; }; }