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

10 lines
181 B
Nix

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