summary refs log tree commit diff
path: root/lib/modules.nix
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-07-11 11:50:03 +0200
committerRobert Hensing <robert@roberthensing.nl>2023-07-11 12:22:57 +0200
commitfb988c6193788f57ab4d53d8cbc8c014e88952ae (patch)
treec96fe708a4b9258c45bb5aa0c7a019c2caae5ad3 /lib/modules.nix
parenteb410eab821b013017196cc39a401c030051937c (diff)
downloadnixpkgs-fb988c6193788f57ab4d53d8cbc8c014e88952ae.tar
nixpkgs-fb988c6193788f57ab4d53d8cbc8c014e88952ae.tar.gz
nixpkgs-fb988c6193788f57ab4d53d8cbc8c014e88952ae.tar.bz2
nixpkgs-fb988c6193788f57ab4d53d8cbc8c014e88952ae.tar.lz
nixpkgs-fb988c6193788f57ab4d53d8cbc8c014e88952ae.tar.xz
nixpkgs-fb988c6193788f57ab4d53d8cbc8c014e88952ae.tar.zst
nixpkgs-fb988c6193788f57ab4d53d8cbc8c014e88952ae.zip
lib/modules.nix: Apply argument `module` of old f
Diffstat (limited to 'lib/modules.nix')
-rw-r--r--lib/modules.nix18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/modules.nix b/lib/modules.nix
index 2b05e872625..0f416f099b8 100644
--- a/lib/modules.nix
+++ b/lib/modules.nix
@@ -551,9 +551,9 @@ let
                 ''
               else
                 mapAttrs
-                  (n: (module: option:
-                        [{ inherit (module) _file; options = option; }]
-                      ) module)
+                  (n: option:
+                    [{ inherit (module) _file; options = option; }]
+                  )
                   subtree
               ) options);
       # an attrset 'name' => list of submodules that define ‘name’.
@@ -572,9 +572,9 @@ let
                 ''
               else
                 mapAttrs
-                  (n: (module: value:
-                        map (config: { inherit (module) file; inherit config; }) (pushDownProperties value)
-                      ) module)
+                  (n: value:
+                    map (config: { inherit (module) file; inherit config; }) (pushDownProperties value)
+                  )
                   subtree
               ) configs);
       # extract the definitions for each loc
@@ -593,9 +593,9 @@ let
                 ''
               else
                 mapAttrs
-                  (n: (module: value:
-                        [{ inherit (module) file; inherit value; }]
-                      ) module)
+                  (n: value:
+                    [{ inherit (module) file; inherit value; }]
+                  )
                 subtree
               ) configs);