acme.nix: Fix unit descriptions

Unit descriptions should be capitalized, and timer units don't have
to describe that they're timers.
This commit is contained in:
Eelco Dolstra
2016-04-18 14:20:49 +02:00
parent 6e8a1cfb18
commit 0c5e837b66
+2 -2
View File
@@ -152,7 +152,7 @@ in
in nameValuePair in nameValuePair
("acme-${cert}") ("acme-${cert}")
({ ({
description = "ACME cert renewal for ${cert} using simp_le"; description = "Renew ACME Certificate for ${cert}";
after = [ "network.target" ]; after = [ "network.target" ];
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
@@ -192,7 +192,7 @@ in
systemd.timers = flip mapAttrs' cfg.certs (cert: data: nameValuePair systemd.timers = flip mapAttrs' cfg.certs (cert: data: nameValuePair
("acme-${cert}") ("acme-${cert}")
({ ({
description = "timer for ACME cert renewal of ${cert}"; description = "Renew ACME Certificate for ${cert}";
wantedBy = [ "timers.target" ]; wantedBy = [ "timers.target" ];
timerConfig = { timerConfig = {
OnCalendar = cfg.renewInterval; OnCalendar = cfg.renewInterval;