forked from Fediversity/Fediversity
revert submodule
wrapper to align with module functions already doing types #2
1 changed files with 1 additions and 5 deletions
|
@ -21,11 +21,7 @@ let
|
||||||
options.resources = mkOption {
|
options.resources = mkOption {
|
||||||
# TODO: maybe transpose, and group the resources by type instead
|
# TODO: maybe transpose, and group the resources by type instead
|
||||||
type = attrsOf (
|
type = attrsOf (
|
||||||
attrTag (
|
attrTag (lib.mapAttrs (_name: resource: mkOption { type = resource.request; }) config.resources)
|
||||||
lib.mapAttrs' (name: resource: {
|
|
||||||
${name} = mkOption { type = resource.request; };
|
|
||||||
}) config.resources
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue