This commit is contained in:
陈浩南 2023-09-13 21:21:13 +08:00
parent f5ff5c3a9e
commit 544b071081
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ inputs:
enable = mkOption { type = types.bool; default = false; }; enable = mkOption { type = types.bool; default = false; };
certs = mkOption certs = mkOption
{ {
type = types.listOf types.oneOf [ types.nonEmptyStr (types.listOf types.nonEmptyStr) ]; type = types.listOf (types.oneOf [ types.nonEmptyStr (types.listOf types.nonEmptyStr) ]);
default = []; default = [];
}; };
}; };

View File

@ -6,7 +6,7 @@ inputs:
port = mkOption { type = types.ints.unsigned; default = 3389; }; port = mkOption { type = types.ints.unsigned; default = 3389; };
hostname = mkOption hostname = mkOption
{ {
type = types.nullOr types.oneOf [ types.nonEmptyStr (types.listOf types.nonEmptyStr) ]; type = types.nullOr (types.oneOf [ types.nonEmptyStr (types.listOf types.nonEmptyStr) ]);
default = null; default = null;
}; };
}; };