about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--lib/modules.nix11
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
                 )