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";
example = "*-*-01/2";
};
persistent = lib.mkEnableOption "service persistence for this job";
};
};
in {
@ -169,7 +171,7 @@ in {
after = [ "network.target" ];
documentation = [ "https://docs.archivebox.io/" ];
timerConfig = {
Persistent = true;
Persistent = value.persistent;
OnCalendar = value.startAt;
RandomizedDelaySec = 120;
};