diff options
Diffstat (limited to 'lib/tests/modules/freeform-str-dep-unstr.nix')
-rw-r--r-- | lib/tests/modules/freeform-str-dep-unstr.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/tests/modules/freeform-str-dep-unstr.nix b/lib/tests/modules/freeform-str-dep-unstr.nix new file mode 100644 index 000000000000..a2dfbc80cfa6 --- /dev/null +++ b/lib/tests/modules/freeform-str-dep-unstr.nix @@ -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; +} |