nixos/taskserver: Fix type for client.{allow,deny}
We already document that we allow special values such as "all" and "none", but the type doesn't represent that. So let's use an enum in conjuction with a loeOf type so that this becomes clear. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
2d89617052
commit
33f948c88b
1 changed files with 2 additions and 2 deletions
|
@ -197,7 +197,7 @@ in {
|
|||
client = {
|
||||
|
||||
allow = mkOption {
|
||||
type = types.listOf types.str;
|
||||
type = with types; loeOf (either (enum ["all" "none"]) str);
|
||||
default = [];
|
||||
example = [ "[Tt]ask [2-9]+" ];
|
||||
description = ''
|
||||
|
@ -220,7 +220,7 @@ in {
|
|||
};
|
||||
|
||||
deny = mkOption {
|
||||
type = types.listOf types.str;
|
||||
type = with types; loeOf (either (enum ["all" "none"]) str);
|
||||
default = [];
|
||||
example = [ "[Tt]ask [2-9]+" ];
|
||||
description = ''
|
||||
|
|
Loading…
Reference in a new issue