From e1b1d245729091714b04758a0f640fd9dd622574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Wed, 4 Oct 2023 12:09:28 +0200 Subject: [PATCH] fix: fix shutdown timer The shutdown timer was being activated every minute, but then had a 15 minute delay before shutting down. This just caused the delay to keep resetting and the system to never shut down. This commit decreases the shutdown delay to 10 minutes, and changes the timer to hit every 15 minutes. --- hosts/droppie/restic-backup.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/droppie/restic-backup.nix b/hosts/droppie/restic-backup.nix index ab649ab..8c4b83c 100644 --- a/hosts/droppie/restic-backup.nix +++ b/hosts/droppie/restic-backup.nix @@ -1,5 +1,5 @@ {pkgs, ...}: let - shutdownWaitMinutes = 15; + shutdownWaitMinutes = 10; shutdownScript = pkgs.writeShellScriptBin "shutdown-wait" '' STATUS_FILES="/media/internal/backups-pub-solar/status" @@ -42,7 +42,7 @@ in { systemd.timers."shutdown-after-backup" = { enable = true; timerConfig = { - OnCalendar = "*-*-* 03..09:30:00 Etc/UTC"; + OnCalendar = "*-*-* 03..09:*/15:00 Etc/UTC"; }; wantedBy = ["timers.target"]; partOf = ["shutdown-after-backup.service"];