gerd.murmur: automatically reload service on certificate update/changes

This commit is contained in:
eyjhb 2024-08-12 23:34:15 +02:00
parent 918c32299e
commit 85a64902af
No known key found for this signature in database
GPG key ID: 609F508E3239F920

View file

@ -20,6 +20,9 @@ in {
# set superpassword on start from secrets # 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}''; 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 # add murmur user to domain group to access cert
users.groups.main-domain.members = [ config.users.groups.murmur.name ]; users.groups.main-domain.members = [ config.users.groups.murmur.name ];