lib/tests: Add tests for attrsOf and lazyAttrsOf

This commit is contained in:
Silvan Mosberger
2019-10-12 20:37:21 +02:00
committed by Silvan Mosberger
parent b48717d1eb
commit ab10e87414
5 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
{ lib, config, ... }: {
options.conditionalWorks = lib.mkOption {
default = ! config.value ? foo;
};
config.value.foo = lib.mkIf false "should not be defined";
}