diff options
author | Robert Hensing <roberth@users.noreply.github.com> | 2023-12-10 06:03:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-10 06:03:50 +0100 |
commit | 584463c7449a116f095eb456116f728c2b31497b (patch) | |
tree | ce404cce204858d19763089cbddd98002c677d5f /nixos/doc | |
parent | b9cb1d8d5f87cbd4c9316ca5a513d107fb6ea593 (diff) | |
parent | 8d3978c149352de6b7e8b72946b58a16427eda2c (diff) |
Merge pull request #272764 from tweag/anyBool
lib.types.anyBool: init
Diffstat (limited to 'nixos/doc')
-rw-r--r-- | nixos/doc/manual/development/option-types.section.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/doc/manual/development/option-types.section.md b/nixos/doc/manual/development/option-types.section.md index 2ad3d6c4f9495..f9c7ac80018e4 100644 --- a/nixos/doc/manual/development/option-types.section.md +++ b/nixos/doc/manual/development/option-types.section.md @@ -13,6 +13,13 @@ merging is handled. `types.bool` : A boolean, its values can be `true` or `false`. + All definitions must have the same value, after priorities. An error is thrown in case of a conflict. + +`types.boolByOr` + +: A boolean, its values can be `true` or `false`. + The result is `true` if _any_ of multiple definitions is `true`. + In other words, definitions are merged with the logical _OR_ operator. `types.path` |