forked from Fediversity/Fediversity
use mapAttrs right, again
This commit is contained in:
parent
243ef4425b
commit
7066b2cb69
1 changed files with 1 additions and 5 deletions
|
@ -21,11 +21,7 @@ let
|
|||
options.resources = mkOption {
|
||||
# TODO: maybe transpose, and group the resources by type instead
|
||||
type = attrsOf (
|
||||
attrTag (
|
||||
lib.mapAttrs' (name: resource: {
|
||||
${name} = mkOption { type = resource.request; };
|
||||
}) config.resources
|
||||
)
|
||||
attrTag (lib.mapAttrs (_name: resource: mkOption { type = resource.request; }) config.resources)
|
||||
);
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue