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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 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;
}