nixpkgs-suyu/lib/tests/modules/freeform-unstr-dep-str.nix

9 lines
189 B
Nix
Raw Normal View History

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