4 defs = lib.modules.mergeAttrDefinitionsWithPrio options._module.args;
5 assertLazy = pos: throw "${pos.file}:${toString pos.line}:${toString pos.column}: The test must not evaluate this the assertLazy thunk, but it did. Unexpected strictness leads to unexpected errors and performance problems.";
9 options.result = lib.mkOption { };
10 config._module.args = {
11 default = lib.mkDefault (assertLazy __curPos);
13 force = lib.mkForce (assertLazy __curPos);
14 unused = assertLazy __curPos;
17 assert defs.default.highestPrio == (lib.mkDefault (assertLazy __curPos)).priority;
18 assert defs.regular.highestPrio == lib.modules.defaultOverridePriority;
19 assert defs.force.highestPrio == (lib.mkForce (assertLazy __curPos)).priority;