lib/modules.nix: Refactor: evaluate applyModuleArgsIfFunction in attrs case

This commit is contained in:
Robert Hensing 2023-03-31 11:18:43 +02:00
parent 439f6790bd
commit 06ca78663c

View File

@ -367,7 +367,7 @@ let
unifyModuleSyntax fallbackFile fallbackKey (applyModuleArgsIfFunction fallbackKey m args)
else if isAttrs m then
if m._type or "module" == "module" then
unifyModuleSyntax fallbackFile fallbackKey (applyModuleArgsIfFunction fallbackKey m args)
unifyModuleSyntax fallbackFile fallbackKey m
else if m._type == "if" || m._type == "override" then
loadModule args fallbackFile fallbackKey { config = m; }
else