summary refs log tree commit diff
path: root/lib/types.nix
diff options
context:
space:
mode:
authorDaniel Rutz <info@danielrutz.com>2018-10-18 23:39:13 +0200
committerDaniel Rutz <info@danielrutz.com>2018-10-18 23:39:13 +0200
commit161c0765ad0e40408aeef07c2db896d185e66522 (patch)
tree7b40fee342bda20db0ed7ded38bca6ced57fa242 /lib/types.nix
parentf3de52d25c80776e982037f6e5148f1fdf0d8dfc (diff)
downloadnixpkgs-161c0765ad0e40408aeef07c2db896d185e66522.tar
nixpkgs-161c0765ad0e40408aeef07c2db896d185e66522.tar.gz
nixpkgs-161c0765ad0e40408aeef07c2db896d185e66522.tar.bz2
nixpkgs-161c0765ad0e40408aeef07c2db896d185e66522.tar.lz
nixpkgs-161c0765ad0e40408aeef07c2db896d185e66522.tar.xz
nixpkgs-161c0765ad0e40408aeef07c2db896d185e66522.tar.zst
nixpkgs-161c0765ad0e40408aeef07c2db896d185e66522.zip
Add type port as an alias to u16
Diffstat (limited to 'lib/types.nix')
-rw-r--r--lib/types.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/types.nix b/lib/types.nix
index ca6794e274c..d1ece2402ad 100644
--- a/lib/types.nix
+++ b/lib/types.nix
@@ -169,6 +169,9 @@ rec {
         # s32 = sign 32 4294967296;
       };
 
+    # Alias of u16 for a port number
+    port = ints.u16;
+
     float = mkOptionType rec {
         name = "float";
         description = "floating point number";