forked from Fediversity/Fediversity
use mapAttrs
right
`mapAttrs'` takes two args rather than a set, whereas if only the val changes `mapAttrs (_: v: ...)` should do
This commit is contained in:
parent
307ff1d6ac
commit
c94d575392
1 changed files with 1 additions and 3 deletions
|
@ -135,9 +135,7 @@ in
|
|||
# TODO: maybe transpose, and group the resources by type instead
|
||||
type = attrsOf (
|
||||
attrTag (
|
||||
lib.mapAttrs' (name: resource: {
|
||||
${name} = mkOption { type = resource.policy; };
|
||||
}) config.resources
|
||||
lib.mapAttrs (_name: resource: mkOption { type = submodule resource.policy; }) config.resources
|
||||
)
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue