summary refs log tree commit diff
path: root/nixos/doc/manual
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2017-07-08 14:10:22 +0200
committerProfpatsch <mail@profpatsch.de>2017-11-05 15:56:32 +0100
commitc53d874277c0eaf88ec71bab9658425535a2252a (patch)
treeb4943d20b57f624de9dc62e3bedc85ddaf31ca48 /nixos/doc/manual
parentcdbe4671bef1c0ba6345c51270472998bd44e266 (diff)
downloadnixlib-c53d874277c0eaf88ec71bab9658425535a2252a.tar
nixlib-c53d874277c0eaf88ec71bab9658425535a2252a.tar.gz
nixlib-c53d874277c0eaf88ec71bab9658425535a2252a.tar.bz2
nixlib-c53d874277c0eaf88ec71bab9658425535a2252a.tar.lz
nixlib-c53d874277c0eaf88ec71bab9658425535a2252a.tar.xz
nixlib-c53d874277c0eaf88ec71bab9658425535a2252a.tar.zst
nixlib-c53d874277c0eaf88ec71bab9658425535a2252a.zip
lib/types: add intBetween
An int type that checks the value range.
Diffstat (limited to 'nixos/doc/manual')
-rw-r--r--nixos/doc/manual/development/option-types.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/doc/manual/development/option-types.xml b/nixos/doc/manual/development/option-types.xml
index 7b86e518aaf1..dedfc286ca30 100644
--- a/nixos/doc/manual/development/option-types.xml
+++ b/nixos/doc/manual/development/option-types.xml
@@ -27,6 +27,17 @@
     <listitem><para>An integer.</para></listitem>
   </varlistentry>
   <varlistentry>
+    <term>
+      <varname>types.intBetween</varname>
+      <replaceable>min</replaceable>
+      <replaceable>max</replaceable>
+    </term>
+    <listitem><para>An integer between <replaceable>min</replaceable>
+        and <replaceable>max</replaceable> (both inclusive).
+        Useful for e.g. port ranges.
+    </para></listitem>
+  </varlistentry>
+  <varlistentry>
     <term><varname>types.path</varname></term>
     <listitem><para>A filesystem path, defined as anything that when coerced to 
         a string starts with a slash. Even if derivations can be considered as