{ pkgs, lib, config, ... }: let inherit (config) networking; inherit (config.services) nginx; domain = "sourcephile.fr"; srv = "covid19"; in { services.nginx = { virtualHosts."${srv}" = { serverName = "${srv}.${domain}"; forceSSL = true; useACMEHost = domain; root = "/home/julm/www/${srv}"; extraConfig = '' access_log off; error_log off; ''; locations."/".extraConfig = '' index index.html; ''; }; }; }