forked from mirrors/nixpkgs
lib/modules.nix: Refactor: evaluate applyModuleArgsIfFunction in attrs case
This commit is contained in:
parent
439f6790bd
commit
06ca78663c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue