From 5ee8b728b5dd993f0642f5fe0a0779e92e434e5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ryan4yin=20=7C=20=E4=BA=8C=E8=8A=B1?= Date: Fri, 25 Sep 2026 20:39:59 +0800 Subject: [PATCH] fix(restic): use the correct systemd timer option names (#319) timerConfig was set with lowercase onCalendar/randomizedDelaySec, which systemd treats as unknown directives. The generated timer had no schedule, so `systemctl list-timers` showed NEXT=- and no backup ever ran. Use the real keys OnCalendar/RandomizedDelaySec. --- modules/nixos/base/restic-backup.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/nixos/base/restic-backup.nix b/modules/nixos/base/restic-backup.nix index e1b6847d..f68bbe12 100644 --- a/modules/nixos/base/restic-backup.nix +++ b/modules/nixos/base/restic-backup.nix @@ -163,7 +163,8 @@ in ++ cfg.exclude; timerConfig = { - inherit (cfg) onCalendar randomizedDelaySec; + OnCalendar = cfg.onCalendar; + RandomizedDelaySec = cfg.randomizedDelaySec; }; inherit (cfg) pruneOpts;