mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
Use builtins.groupBy over lib.groupBy because of performance
See https://github.com/NixOS/nix/pull/5715
This commit is contained in:
parent
b601f42f93
commit
ac48782b56
3 changed files with 3 additions and 3 deletions
|
|
@ -35,7 +35,7 @@ in
|
|||
inherit port;
|
||||
})
|
||||
)
|
||||
|> lib.groupBy (entry: toString entry.port)
|
||||
|> builtins.groupBy (entry: toString entry.port)
|
||||
|> lib.mapAttrs (_: values: values |> lib.map (value: value.file))
|
||||
|> lib.filterAttrs (_: files: lib.length files > 1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue