outputs: use lib.genAttrs for system attrset generation

This commit is contained in:
Wroclaw 2025-02-27 21:29:19 +01:00
parent 6a1b7d27c0
commit dc0351c2c9

View file

@ -13,10 +13,7 @@ systems = [
]; ];
# (system -> x) -> { [system] := x } # (system -> x) -> { [system] := x }
forEachSystem = x: lib.pipe systems [ forEachSystem = lib.genAttrs systems;
(builtins.map (system: { name = system; value = x system; }))
builtins.listToAttrs
];
self = { self = {
inherit inputs lib self; inherit inputs lib self;