summary refs log tree commit diff
path: root/nixos/doc/manual/development/option-types.section.md
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2022-01-24 16:27:41 +0100
committerRobert Hensing <robert@roberthensing.nl>2022-01-24 16:31:59 +0100
commit48dbe26229124114f26cfe0eec32866a47888452 (patch)
tree6a5c863598baccf7fb95520bc3a670e47acb677a /nixos/doc/manual/development/option-types.section.md
parent8691ab3d47f1f9f94b51357fba7b8133cc8bcd88 (diff)
downloadnixpkgs-48dbe26229124114f26cfe0eec32866a47888452.tar
nixpkgs-48dbe26229124114f26cfe0eec32866a47888452.tar.gz
nixpkgs-48dbe26229124114f26cfe0eec32866a47888452.tar.bz2
nixpkgs-48dbe26229124114f26cfe0eec32866a47888452.tar.lz
nixpkgs-48dbe26229124114f26cfe0eec32866a47888452.tar.xz
nixpkgs-48dbe26229124114f26cfe0eec32866a47888452.tar.zst
nixpkgs-48dbe26229124114f26cfe0eec32866a47888452.zip
nixos/doc: Document types.unique
Diffstat (limited to 'nixos/doc/manual/development/option-types.section.md')
-rw-r--r--nixos/doc/manual/development/option-types.section.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/doc/manual/development/option-types.section.md b/nixos/doc/manual/development/option-types.section.md
index ed557206659..56ffa8e9d79 100644
--- a/nixos/doc/manual/development/option-types.section.md
+++ b/nixos/doc/manual/development/option-types.section.md
@@ -250,6 +250,12 @@ Composed types are types that take a type as parameter. `listOf
 :   Ensures that type *`t`* cannot be merged. It is used to ensure option
     definitions are declared only once.
 
+`types.unique` `{ message = m }` *`t`*
+
+:   Ensures that type *`t`* cannot be merged. Prints the message *`m`*, after
+    the line `The option <option path> is defined multiple times.` and before
+    a list of definition locations.
+
 `types.either` *`t1 t2`*
 
 :   Type *`t1`* or type *`t2`*, e.g. `with types; either int str`.