core/lib/tests/modules/boolByOr.nix

25 lines
369 B
Nix
Raw Normal View History

2024-06-30 08:16:52 +00:00
{ lib, ... }:
{
2024-05-01 22:14:04 +00:00
2024-06-30 08:16:52 +00:00
options.value = lib.mkOption { type = lib.types.lazyAttrsOf lib.types.boolByOr; };
2024-05-01 22:14:04 +00:00
config.value = {
2024-06-30 08:16:52 +00:00
falseFalse = lib.mkMerge [
false
false
];
trueFalse = lib.mkMerge [
true
false
];
falseTrue = lib.mkMerge [
false
true
];
trueTrue = lib.mkMerge [
true
true
];
2024-05-01 22:14:04 +00:00
};
}