nixos/firewall: use types.port where appropriate
This commit is contained in:
parent
4a48f6ac98
commit
843215ac1c
1 changed files with 4 additions and 4 deletions
|
@ -263,7 +263,7 @@ let
|
|||
|
||||
commonOptions = {
|
||||
allowedTCPPorts = mkOption {
|
||||
type = types.listOf types.int;
|
||||
type = types.listOf types.port;
|
||||
default = [ ];
|
||||
example = [ 22 80 ];
|
||||
description =
|
||||
|
@ -274,7 +274,7 @@ let
|
|||
};
|
||||
|
||||
allowedTCPPortRanges = mkOption {
|
||||
type = types.listOf (types.attrsOf types.int);
|
||||
type = types.listOf (types.attrsOf types.port);
|
||||
default = [ ];
|
||||
example = [ { from = 8999; to = 9003; } ];
|
||||
description =
|
||||
|
@ -285,7 +285,7 @@ let
|
|||
};
|
||||
|
||||
allowedUDPPorts = mkOption {
|
||||
type = types.listOf types.int;
|
||||
type = types.listOf types.port;
|
||||
default = [ ];
|
||||
example = [ 53 ];
|
||||
description =
|
||||
|
@ -295,7 +295,7 @@ let
|
|||
};
|
||||
|
||||
allowedUDPPortRanges = mkOption {
|
||||
type = types.listOf (types.attrsOf types.int);
|
||||
type = types.listOf (types.attrsOf types.port);
|
||||
default = [ ];
|
||||
example = [ { from = 60000; to = 61000; } ];
|
||||
description =
|
||||
|
|
Loading…
Reference in a new issue