Add lots of missing option types
This commit is contained in:
@@ -6,7 +6,7 @@ let
|
||||
|
||||
cfg = config.services.fcron;
|
||||
|
||||
queuelen = if cfg.queuelen == "" then "" else "-q ${toString cfg.queuelen}";
|
||||
queuelen = if cfg.queuelen == null then "" else "-q ${toString cfg.queuelen}";
|
||||
|
||||
systemCronJobs =
|
||||
''
|
||||
@@ -34,33 +34,40 @@ in
|
||||
services.fcron = {
|
||||
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "Whether to enable the `fcron' daemon.";
|
||||
description = "Whether to enable the <command>fcron</command> daemon.";
|
||||
};
|
||||
|
||||
allow = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ "all" ];
|
||||
description = ''
|
||||
Users allowed to use fcrontab and fcrondyn (one name per line, "all" for everyone).
|
||||
Users allowed to use fcrontab and fcrondyn (one name per
|
||||
line, <literal>all</literal> for everyone).
|
||||
'';
|
||||
};
|
||||
|
||||
deny = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
description = "Users forbidden from using fcron.";
|
||||
};
|
||||
|
||||
maxSerialJobs = mkOption {
|
||||
type = types.int;
|
||||
default = 1;
|
||||
description = "Maximum number of serial jobs which can run simultaneously.";
|
||||
};
|
||||
|
||||
queuelen = mkOption {
|
||||
default = "";
|
||||
description = "Number of jobs the serial queue and the lavg queue can contain - empty to net set this number (-q)";
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = "Number of jobs the serial queue and the lavg queue can contain.";
|
||||
};
|
||||
|
||||
systab = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = ''The "system" crontab contents.'';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user