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.
This commit is contained in:
ryan4yin | 二花 authored and GitHub committed 2026-09-25 20:39:59 +08:00
1 parent 4bd463a784
commit 5ee8b728b5
1 file changed
+2 -1
+2 -1
View File
@@ -163,7 +163,8 @@ in
++ cfg.exclude;
timerConfig = {
inherit (cfg) onCalendar randomizedDelaySec;
OnCalendar = cfg.onCalendar;
RandomizedDelaySec = cfg.randomizedDelaySec;
};
inherit (cfg) pruneOpts;