diff --git a/lib/modules.nix b/lib/modules.nix index 50827e18f105..a40f02dcc3dd 100644 --- a/lib/modules.nix +++ b/lib/modules.nix @@ -285,7 +285,7 @@ rec { in opt // { value = addErrorContext "while evaluating the option `${showOption loc}':" value; - definitions = map (def: def.value) defsFinal; + definitions = map (def: def.value) res.defsFinal; files = map (def: def.file) res.defsFinal; inherit (res) isDefined; };