diff --git a/pkgs/lib/modules.nix b/pkgs/lib/modules.nix index d9b9d3b54c1..9716696cc0b 100644 --- a/pkgs/lib/modules.nix +++ b/pkgs/lib/modules.nix @@ -54,10 +54,10 @@ rec { removeAttrs (delayProperties m) ["require"]; in if isModule m then - { key = ""; } // m + { key = ""; } // m else { - key = ""; + key = ""; imports = getImportedPaths m; config = getConfig m; } // ( @@ -73,7 +73,7 @@ rec { moduleImport = m: (unifyModuleSyntax (applyIfFunction (importIfPath m) args)) // { # used by generic closure to avoid duplicated imports. - key = if isPath m then m else ""; + key = if isPath m then m else ""; }; getImports = m: attrByPath ["imports"] [] m;