You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
479 B
23 lines
479 B
{ lib, config, ... }: {
|
|
|
|
options.value = lib.mkOption {
|
|
type = lib.types.anything;
|
|
};
|
|
|
|
options.applied = lib.mkOption {
|
|
default = lib.mapAttrs (name: fun: fun null) config.value;
|
|
};
|
|
|
|
config = lib.mkMerge [
|
|
{
|
|
value.single-lambda = x: x;
|
|
value.multiple-lambdas = x: { inherit x; };
|
|
value.merging-lambdas = x: { inherit x; };
|
|
}
|
|
{
|
|
value.multiple-lambdas = x: [ x ];
|
|
value.merging-lambdas = y: { inherit y; };
|
|
}
|
|
];
|
|
|
|
}
|
|
|