services/archivebox: add job-specific service persistence

This commit is contained in:
Gabriel Arazas 2022-08-06 14:03:51 +08:00
parent 472af7efd1
commit 631b14f8b5

View File

@ -37,6 +37,8 @@ let
defaultText = "weekly"; defaultText = "weekly";
example = "*-*-01/2"; example = "*-*-01/2";
}; };
persistent = lib.mkEnableOption "service persistence for this job";
}; };
}; };
in { in {
@ -169,7 +171,7 @@ in {
after = [ "network.target" ]; after = [ "network.target" ];
documentation = [ "https://docs.archivebox.io/" ]; documentation = [ "https://docs.archivebox.io/" ];
timerConfig = { timerConfig = {
Persistent = true; Persistent = value.persistent;
OnCalendar = value.startAt; OnCalendar = value.startAt;
RandomizedDelaySec = 120; RandomizedDelaySec = 120;
}; };