logcheck module: optionSet -> submodule
This commit is contained in:
parent
495a24d912
commit
c1cad56c6e
@ -62,6 +62,7 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
ignoreOptions = {
|
ignoreOptions = {
|
||||||
|
options = {
|
||||||
level = levelOption;
|
level = levelOption;
|
||||||
|
|
||||||
regex = mkOption {
|
regex = mkOption {
|
||||||
@ -72,8 +73,10 @@ let
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
ignoreCronOptions = {
|
ignoreCronOptions = {
|
||||||
|
options = {
|
||||||
user = mkOption {
|
user = mkOption {
|
||||||
default = "root";
|
default = "root";
|
||||||
type = types.str;
|
type = types.str;
|
||||||
@ -100,6 +103,7 @@ let
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@ -180,8 +184,7 @@ in
|
|||||||
description = ''
|
description = ''
|
||||||
This option defines extra ignore rules.
|
This option defines extra ignore rules.
|
||||||
'';
|
'';
|
||||||
type = types.loaOf types.optionSet;
|
type = with types; loaOf (submodule ignoreOptions);
|
||||||
options = [ ignoreOptions ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ignoreCron = mkOption {
|
ignoreCron = mkOption {
|
||||||
@ -189,8 +192,7 @@ in
|
|||||||
description = ''
|
description = ''
|
||||||
This option defines extra ignore rules for cronjobs.
|
This option defines extra ignore rules for cronjobs.
|
||||||
'';
|
'';
|
||||||
type = types.loaOf types.optionSet;
|
type = with types; loaOf (submodule ignoreCronOptions);
|
||||||
options = [ ignoreOptions ignoreCronOptions ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extraGroups = mkOption {
|
extraGroups = mkOption {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user