Skip to content

Commit

Permalink
lib/modules.nix: Refactor: evaluate applyModuleArgsIfFunction in attr…
Browse files Browse the repository at this point in the history
…s case
  • Loading branch information
roberth committed May 6, 2023
1 parent 439f679 commit 06ca786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06ca786

Please sign in to comment.