From 8d3978c149352de6b7e8b72946b58a16427eda2c Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Thu, 7 Dec 2023 22:08:00 +0100 Subject: lib.types.boolByOr: init This type is necessary to have correct merging behavior for `allowUnfreePredicate` and `allowInsecurePredicate` Co-authored-by: Robert Hensing --- nixos/doc/manual/development/option-types.section.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'nixos/doc') 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` -- cgit 1.4.1