From a3c75250c4f6d33e1da80e10dd7be663a8f3d6a2 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Wed, 21 Oct 2026 20:38:46 +0800 Subject: [PATCH] fix(restic): catch up backups missed while a host was off Assisted-by: DeepSeek Harness 0.2.1-rc.2 (claude-opus-5-5) --- modules/nixos/base/restic-backup.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/nixos/base/restic-backup.nix b/modules/nixos/base/restic-backup.nix index 6732cb55..bc398d29 100644 --- a/modules/nixos/base/restic-backup.nix +++ b/modules/nixos/base/restic-backup.nix @@ -173,9 +173,12 @@ in ] ++ cfg.exclude; + # Setting timerConfig replaces the module default, so keep its + # `Persistent`: a host that is off at the slot backs up once it is back. timerConfig = { OnCalendar = cfg.onCalendar; RandomizedDelaySec = cfg.randomizedDelaySec; + Persistent = true; }; inherit (cfg) pruneOpts;