From 161c0765ad0e40408aeef07c2db896d185e66522 Mon Sep 17 00:00:00 2001 From: Daniel Rutz Date: Thu, 18 Oct 2018 23:39:13 +0200 Subject: Add type port as an alias to u16 --- lib/types.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/types.nix') 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"; -- cgit 1.4.1