diff options
Diffstat (limited to 'nixos/modules/services/networking/nat.nix')
-rw-r--r-- | nixos/modules/services/networking/nat.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/nat.nix b/nixos/modules/services/networking/nat.nix index b6fa3b79eb2..9ddd830a04a 100644 --- a/nixos/modules/services/networking/nat.nix +++ b/nixos/modules/services/networking/nat.nix @@ -76,9 +76,19 @@ in }; networking.nat.forwardPorts = mkOption { - type = types.listOf types.attrs; + type = types.listOf types.optionSet; default = []; example = [ { sourcePort = 8080; destination = "10.0.0.1:80"; } ]; + options = { + sourcePort = mkOption { + type = types.int; + }; + + destination = mkOption { + type = types.str; + }; + }; + description = '' List of forwarded ports from the external interface to |