1 { lib, config, ... }: {
3 options.valueIsFunction = lib.mkOption {
4 default = lib.mapAttrs (name: lib.isFunction) config.value;
7 options.value = lib.mkOption {
8 type = lib.types.anything;
11 options.applied = lib.mkOption {
12 default = lib.mapAttrs (name: fun: fun null) config.value;
15 config = lib.mkMerge [
17 value.single-lambda = x: x;
18 value.multiple-lambdas = x: { inherit x; };
19 value.merging-lambdas = x: { inherit x; };
22 value.multiple-lambdas = x: [ x ];
23 value.merging-lambdas = y: { inherit y; };