summaryrefslogtreecommitdiffstats
path: root/systems/ne/config.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-12-01 00:46:56 +0000
committertv <tv@krebsco.de>2026-12-01 01:33:34 +0000
commit143b4991a1cecbf471e6199d3aa100944e007c4d (patch)
treee5fb1a1729cab6ce9d57fb0ba20f32dc5d2cabe0 /systems/ne/config.nix
parentd81d9aaac6d50b6f2690cfb63987678d3ee90d4c (diff)
systemd-credentials: make the options part of systemd.services
systemd.services.<name>.restartIfCredentialsChange and reloadIfCredentialsChange replace hrm.systemd.services.<name>.…; 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.
Diffstat (limited to 'systems/ne/config.nix')
-rw-r--r--systems/ne/config.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/systems/ne/config.nix b/systems/ne/config.nix
index 2cc0ad1e..13c5894c 100644
--- a/systems/ne/config.nix
+++ b/systems/ne/config.nix
@@ -214,7 +214,7 @@
'';
};
# secrets ne gencert cgit.ne.r
- hrm.systemd.services.nginx.reloadIfCredentialsChange = true;
+ systemd.services.nginx.reloadIfCredentialsChange = true;
systemd.services.nginx.serviceConfig.LoadCredential = [
"cgit.ne.r.crt:${config.krebs.secret.directory}/cgit.ne.r.crt"
"cgit.ne.r.key:${config.krebs.secret.directory}/cgit.ne.r.key"
[cgit] Unable to lock slot /tmp/cgit/a9300000.lock: Permission denied (13)