diff --git a/pkgs/lib/modules.nix b/pkgs/lib/modules.nix index 55e33c226141..becd786d8cd0 100644 --- a/pkgs/lib/modules.nix +++ b/pkgs/lib/modules.nix @@ -118,7 +118,7 @@ rec { moduleApply { config = delayProperties; } module; evalDefinitions = opt: values: - if opt ? options && opt.options != [] && opt ? type && opt.type.delayOnGlobalEval then + if opt ? type && opt.type.delayOnGlobalEval then map (delayPropertiesWithIter opt.type.iter opt.name) (evalLocalProperties values) else diff --git a/pkgs/lib/properties.nix b/pkgs/lib/properties.nix index a911c99bf3fd..f28d652d4e69 100644 --- a/pkgs/lib/properties.nix +++ b/pkgs/lib/properties.nix @@ -126,7 +126,7 @@ rec { filter (x: !isNotdef x) ( lib.addErrorContext "while evaluating properties." ( triggerPropertiesGlobalEval ( - map triggerPropertiesEval valList + evalLocalProperties valList ))) else valList;