diff options
author | Robert Hensing <roberth@users.noreply.github.com> | 2023-06-23 18:10:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-23 18:10:49 +0200 |
commit | 895ac176341606688b864bc84312140c065db741 (patch) | |
tree | 0543e5f5f4087455eb7a9bd067187f18671db102 /lib/modules.nix | |
parent | 8f31bff7940ed8d8d3e250e6ab7e7bc5b6160f1d (diff) |
lib/modules.nix: Clean up mergeAttrDefinitionsWithPrio impl
Diffstat (limited to 'lib/modules.nix')
-rw-r--r-- | lib/modules.nix | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/modules.nix b/lib/modules.nix index c7dcccd7a1dcb..381675f611df8 100644 --- a/lib/modules.nix +++ b/lib/modules.nix @@ -920,14 +920,7 @@ let option -> attrsOf { highestPrio, value } */ mergeAttrDefinitionsWithPrio = opt: - let subAttrDefs = - lib.concatMap - ({ value, ... }@def: - map - (value: def // { inherit value; }) - (lib.pushDownProperties value) - ) - opt.definitionsWithLocations; + let defsByAttr = lib.zipAttrs ( lib.concatLists ( @@ -935,7 +928,7 @@ let ({ value, ... }@def: map (lib.mapAttrsToList (k: value: { ${k} = def // { inherit value; }; })) - (lib.pushDownProperties value) + (pushDownProperties value) ) opt.definitionsWithLocations ) |