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