From 8085f764b6e344d5eae5f2aaf710ae4f3e4098ea Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 1 Dec 2026 00:46:56 +0000 Subject: systemd-credentials: make the options part of systemd.services MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit systemd.services..restartIfCredentialsChange and reloadIfCredentialsChange replace hrm.systemd.services..…; the alias for stockholm's krebs.systemd.services now points there. Units can't be made from config.systemd.services itself, so the trigger services become two templates, credentials-restart@ and credentials-reload@, which call systemctl themselves; only the path units remain per service, by their old names. Without comparing checksums any more: the path units fire when a credential is written, and nothing rewrites one unchanged. --- modules/unbound.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/unbound.nix') diff --git a/modules/unbound.nix b/modules/unbound.nix index c7937892..64f69364 100644 --- a/modules/unbound.nix +++ b/modules/unbound.nix @@ -73,7 +73,7 @@ tls-service-key = "/run/credentials/unbound.service/tls-service-key"; tls-service-pem = "/run/credentials/unbound.service/tls-service-pem"; }; - hrm.systemd.services.unbound.restartIfCredentialsChange = true; + systemd.services.unbound.restartIfCredentialsChange = true; systemd.services.unbound.serviceConfig.LoadCredential = [ "tls-service-key:/var/lib/acme/${cfg.useACMEHost}/key.pem" "tls-service-pem:/var/lib/acme/${cfg.useACMEHost}/fullchain.pem" -- cgit v1.3.1