summaryrefslogtreecommitdiff
path: root/hostnix/elmo/system.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hostnix/elmo/system.nix')
-rw-r--r--hostnix/elmo/system.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/hostnix/elmo/system.nix b/hostnix/elmo/system.nix
index 23a6aa6..d98d1ff 100644
--- a/hostnix/elmo/system.nix
+++ b/hostnix/elmo/system.nix
@@ -56,6 +56,11 @@
# https://wiki.archlinux.org/index.php/Systemd/Timers#MAILTO
systemd.services."status-email@" = {
description = "Status email for %i";
+ unitConfig = {
+ # Throttle notifications to twice daily.
+ StartLimitIntervalSec = "12hr";
+ StartLimitBurst = "1";
+ };
serviceConfig = {
Type = "oneshot";
};