cluster/services/irc: coerce keyfile properly

This commit is contained in:
Max Headroom 2022-09-23 22:06:45 +02:00
parent d5f65e077e
commit 4c1fca0a20

View file

@ -94,7 +94,7 @@ in {
systemd.services.ngircd = { systemd.services.ngircd = {
after = [ "acme-finished-${serverName}.target" "dhparams-gen-ngircd.service" ]; after = [ "acme-finished-${serverName}.target" "dhparams-gen-ngircd.service" ];
wants = [ "acme-finished-${serverName}.target" "dhparams-gen-ngircd.service" ]; wants = [ "acme-finished-${serverName}.target" "dhparams-gen-ngircd.service" ];
restartTriggers = [ config.age.secrets.ircPeerKey.file ]; restartTriggers = [ "${config.age.secrets.ircPeerKey.file}" ];
serviceConfig.RuntimeDirectory = "ngircd"; serviceConfig.RuntimeDirectory = "ngircd";
preStart = '' preStart = ''
install -d -m700 /run/ngircd/secrets install -d -m700 /run/ngircd/secrets