lib/tests: Add tests for freeform modules

This commit is contained in:
Silvan Mosberger
2020-08-03 22:37:01 +02:00
parent 2d45a62899
commit 446d80d28d
7 changed files with 62 additions and 0 deletions
@@ -0,0 +1,8 @@
{ lib, config, ... }: {
options.foo = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = null;
};
config.foo = lib.mkIf (config ? value) config.value;
}