From fe1527939038ac964df2028e6b90c35121db9955 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Mon, 13 Feb 2023 10:51:50 +0100 Subject: [PATCH] lib/modules.nix: Use explicit exports --- lib/modules.nix | 56 +++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 52 insertions(+), 4 deletions(-) diff --git a/lib/modules.nix b/lib/modules.nix index 9c3e2085e378..de03b50e2698 100644 --- a/lib/modules.nix +++ b/lib/modules.nix @@ -63,10 +63,6 @@ let decls )); -in - -rec { - /* Evaluate a set of modules. The result is a set with the attributes: @@ -1218,4 +1214,56 @@ rec { _file = file; config = lib.importTOML file; }; + +in +{ + inherit + applyModuleArgsIfFunction + collectModules + defaultOrderPriority + defaultOverridePriority + defaultPriority + dischargeProperties + doRename + evalModules + evalOptionValue + filterOverrides + filterOverrides' + fixMergeModules + fixupOptionType + importJSON + importTOML + mergeDefinitions + mergeModules + mergeModules' + mergeOptionDecls + mkAfter + mkAliasAndWrapDefinitions + mkAliasAndWrapDefsWithPriority + mkAliasDefinitions + mkAliasIfDef + mkAliasOptionModule + mkAliasOptionModuleMD + mkAssert + mkBefore + mkChangedOptionModule + mkDefault + mkDerivedConfig + mkFixStrictness + mkForce + mkIf + mkImageMediaOverride + mkMerge + mkMergedOptionModule + mkOptionDefault + mkOrder + mkOverride + mkRemovedOptionModule + mkRenamedOptionModule + mkRenamedOptionModuleWith + mkVMOverride + pushDownProperties + setDefaultModuleLocation + sortProperties + unifyModuleSyntax; }