mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 18:19:09 +00:00
services/archivebox: add job-specific service persistence
This commit is contained in:
parent
472af7efd1
commit
631b14f8b5
@ -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;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user