diff options
author | Pierre Bourdon <delroth@gmail.com> | 2019-03-09 19:45:11 +0100 |
---|---|---|
committer | Pierre Bourdon <delroth@gmail.com> | 2019-03-09 19:45:11 +0100 |
commit | 843215ac1c84eaab283f8ccc0b40c9cd37097c44 (patch) | |
tree | 21d059e2cf5a466842fd4038912e4b1325d50480 /nixos | |
parent | 4a48f6ac98bf3b389cc854840bb059b0a9e8241a (diff) | |
download | nixlib-843215ac1c84eaab283f8ccc0b40c9cd37097c44.tar nixlib-843215ac1c84eaab283f8ccc0b40c9cd37097c44.tar.gz nixlib-843215ac1c84eaab283f8ccc0b40c9cd37097c44.tar.bz2 nixlib-843215ac1c84eaab283f8ccc0b40c9cd37097c44.tar.lz nixlib-843215ac1c84eaab283f8ccc0b40c9cd37097c44.tar.xz nixlib-843215ac1c84eaab283f8ccc0b40c9cd37097c44.tar.zst nixlib-843215ac1c84eaab283f8ccc0b40c9cd37097c44.zip |
nixos/firewall: use types.port where appropriate
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/networking/firewall.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/modules/services/networking/firewall.nix b/nixos/modules/services/networking/firewall.nix index aba64e4f60ff..73feba242a11 100644 --- a/nixos/modules/services/networking/firewall.nix +++ b/nixos/modules/services/networking/firewall.nix @@ -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 = |