use mapAttrs right, again

This commit is contained in:
Valentin Gagarin 2025-07-22 12:42:08 +02:00
parent 243ef4425b
commit 7066b2cb69

View file

@ -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)
);
};
};