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

9 lines
189 B
Nix
Raw Normal View History

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