From 85a64902af2af92bd77373884367892514c0f5d5 Mon Sep 17 00:00:00 2001 From: eyjhb Date: Mon, 12 Aug 2024 23:34:15 +0200 Subject: [PATCH] gerd.murmur: automatically reload service on certificate update/changes --- machines/gerd/services/murmur.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/machines/gerd/services/murmur.nix b/machines/gerd/services/murmur.nix index 33921c3..1570157 100644 --- a/machines/gerd/services/murmur.nix +++ b/machines/gerd/services/murmur.nix @@ -20,6 +20,9 @@ in { # set superpassword on start from secrets systemd.services.murmur.preStart = lib.mkAfter ''${config.services.murmur.package}/bin/mumble-server -ini /run/murmur/murmurd.ini -readsupw < ${config.age.secrets.murmur-superpassword.path}''; + # automatically reload service + security.acme.certs."${svc_domain}".reloadServices = [ config.systemd.services.murmur.name ]; + # add murmur user to domain group to access cert users.groups.main-domain.members = [ config.users.groups.murmur.name ];