core/lib/tests/modules/freeform-unstr-dep-str.nix
2024-06-30 09:16:52 +01:00

10 lines
189 B
Nix

{ lib, config, ... }:
{
options.value = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = null;
};
config.foo = lib.mkIf (config.value != null) config.value;
}