1 { pkgs, lib, config, ... }:
2 let domain = "autogeree.net"; in
4 imports = map (m: import m {inherit domain;}) [
7 security.acme.certs."${domain}" = {
8 postRun = "systemctl reload nginx";
10 systemd.services.nginx.serviceConfig = {
13 systemd.services.nginx = {
14 wants = [ "acme-selfsigned-${domain}.service" "acme-${domain}.service"];
15 after = [ "acme-selfsigned-${domain}.service" ];