summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorLuca Bruno <lethalman88@gmail.com>2014-09-04 11:32:40 +0200
committerLuca Bruno <lethalman88@gmail.com>2014-09-04 11:33:08 +0200
commit2ba523df244d9a3eefec9e2303080f93108254fe (patch)
tree758d5a35dc17caad4560b5f18b8b13e7d4b4d403 /nixos
parentca931e0e1ecb1feae9816cdcfd89227dea31a943 (diff)
downloadnixpkgs-2ba523df244d9a3eefec9e2303080f93108254fe.tar
nixpkgs-2ba523df244d9a3eefec9e2303080f93108254fe.tar.gz
nixpkgs-2ba523df244d9a3eefec9e2303080f93108254fe.tar.bz2
nixpkgs-2ba523df244d9a3eefec9e2303080f93108254fe.tar.lz
nixpkgs-2ba523df244d9a3eefec9e2303080f93108254fe.tar.xz
nixpkgs-2ba523df244d9a3eefec9e2303080f93108254fe.tar.zst
nixpkgs-2ba523df244d9a3eefec9e2303080f93108254fe.zip
nixos nat: add description to forwardPorts
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/nat.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/nat.nix b/nixos/modules/services/networking/nat.nix
index 9ddd830a04a..4a4c06503c2 100644
--- a/nixos/modules/services/networking/nat.nix
+++ b/nixos/modules/services/networking/nat.nix
@@ -82,10 +82,14 @@ in
       options = {
         sourcePort = mkOption {
           type = types.int;
+          example = 8080;
+          description = "Source port of the external interface";
         };
 
         destination = mkOption {
           type = types.str;
+          example = "10.0.0.1:80";
+          description = "Forward tcp connection to destination ip:port";
         };
       };