aboutsummaryrefslogtreecommitdiff
path: root/tests/modules/freeform-unstr-dep-str.nix
blob: 549d89afecaced729556ab98de743dfe07f1c22f (plain)
1
2
3
4
5
6
7
8
{ lib, config, ... }: {
  options.value = lib.mkOption {
    type = lib.types.nullOr lib.types.str;
    default = null;
  };

  config.foo = lib.mkIf (config.value != null) config.value;
}