From cfc871cce6aefaa0ff64619780a807cba761c6b2 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 30 Jan 2023 12:20:23 +0100 Subject: ... --- hosts/surtr/http/webdav/default.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'hosts/surtr/http/webdav/default.nix') diff --git a/hosts/surtr/http/webdav/default.nix b/hosts/surtr/http/webdav/default.nix index 0443bc97..c5a94996 100644 --- a/hosts/surtr/http/webdav/default.nix +++ b/hosts/surtr/http/webdav/default.nix @@ -68,12 +68,8 @@ in { ''; }; }; - security.acme.domains."webdav.141.li" = { - certCfg = { - postRun = '' - ${pkgs.systemd}/bin/systemctl try-restart nginx.service - ''; - }; + security.acme.rfc2136Domains."webdav.141.li" = { + restartUnits = ["nginx.service"]; }; systemd.services.nginx.serviceConfig = { -- cgit v1.2.3