core/lib/tests/modules/freeform-str-dep-unstr.nix

9 lines
181 B
Nix
Raw Normal View History

2024-05-01 22:14:04 +00:00
{ lib, config, ... }: {
options.foo = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = null;
};
config.foo = lib.mkIf (config ? value) config.value;
}