1: # Remove a layer of attrset nesting, prefixing the outer names to the inner ones 2: { die, lib }: 3: 4: with lib; 5: attrs: 6: listToAttrs (concatLists (mapAttrsToList (outer: 7: mapAttrsToList (inner: value: { 8: inherit value; 9: name = outer + inner; 10: })) attrs))