mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +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";
|
||||
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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user