networking.nat.forwardPorts.*.sourcePort

Source port of the external interface; to specify a port range, use a string with a colon (e.g. "60000:61000")

Type
signed integer or string matching the pattern [[:digit:]]+:[[:digit:]]+
Example
8080
Declared
<nixpkgs/nixos/modules/services/networking/nat.nix>