mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-24 12:19:12 +00:00
services/gallery-dl: remove persistent option
This commit is contained in:
parent
52871b4fa3
commit
eab8631e9b
@ -37,17 +37,6 @@ let
|
|||||||
example = "*-*-3/4";
|
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 {
|
extraArgs = lib.mkOption {
|
||||||
type = with lib.types; listOf str;
|
type = with lib.types; listOf str;
|
||||||
description = ''
|
description = ''
|
||||||
@ -162,7 +151,7 @@ in
|
|||||||
description = "gallery-dl archive job for group '${name}'";
|
description = "gallery-dl archive job for group '${name}'";
|
||||||
documentation = [ "man:gallery-dl(1)" ];
|
documentation = [ "man:gallery-dl(1)" ];
|
||||||
enable = true;
|
enable = true;
|
||||||
path = with pkgs; [ brotli coreutils ffmpeg cfg.package ];
|
path = with pkgs; [ brotli ffmpeg cfg.package ];
|
||||||
preStart = ''
|
preStart = ''
|
||||||
mkdir -p ${lib.escapeShellArg cfg.archivePath}
|
mkdir -p ${lib.escapeShellArg cfg.archivePath}
|
||||||
'';
|
'';
|
||||||
@ -215,7 +204,7 @@ in
|
|||||||
(name: value:
|
(name: value:
|
||||||
lib.nameValuePair (jobUnitName name) {
|
lib.nameValuePair (jobUnitName name) {
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
Persistent = value.persistent;
|
Persistent = true;
|
||||||
RandomizedDelaySec = "2min";
|
RandomizedDelaySec = "2min";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user