3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/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.

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