services/gallery-dl: remove persistent option

This commit is contained in:
Gabriel Arazas 2023-10-27 13:24:21 +08:00
parent 52871b4fa3
commit eab8631e9b
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -37,17 +37,6 @@ let
example = "*-*-3/4";
};
persistent = lib.mkOption {
type = lib.types.bool;
description = ''
Indicates whether job is persistent, starting the service despite the
timer missed.
'';
default = false;
defaultText = "false";
example = "true";
};
extraArgs = lib.mkOption {
type = with lib.types; listOf str;
description = ''
@ -162,7 +151,7 @@ in
description = "gallery-dl archive job for group '${name}'";
documentation = [ "man:gallery-dl(1)" ];
enable = true;
path = with pkgs; [ brotli coreutils ffmpeg cfg.package ];
path = with pkgs; [ brotli ffmpeg cfg.package ];
preStart = ''
mkdir -p ${lib.escapeShellArg cfg.archivePath}
'';
@ -215,7 +204,7 @@ in
(name: value:
lib.nameValuePair (jobUnitName name) {
timerConfig = {
Persistent = value.persistent;
Persistent = true;
RandomizedDelaySec = "2min";
};
})