mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:36 +01:00
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:
1 parent
4bd463a784
commit
5ee8b728b5
1 file changed
+2
-1
@@ -163,7 +163,8 @@ in
|
||||
++ cfg.exclude;
|
||||
|
||||
timerConfig = {
|
||||
inherit (cfg) onCalendar randomizedDelaySec;
|
||||
OnCalendar = cfg.onCalendar;
|
||||
RandomizedDelaySec = cfg.randomizedDelaySec;
|
||||
};
|
||||
|
||||
inherit (cfg) pruneOpts;
|
||||
|
||||
Reference in new issue
Block a user