@@ -156,7 +156,10 @@ rec {
156 type = types.lazyAttrsOf types.raw;
156 type = types.lazyAttrsOf types.raw;
157 # Only render documentation once at the root of the option tree,
157 # Only render documentation once at the root of the option tree,
158 # not for all individual submodules.
158 # not for all individual submodules.
159+ # Allow merging option decls to make this internal regardless.
159− internal = prefix != [];
160+ ${if prefix == []
161+ then null # unset => visible
162+ else "internal"} = true;
160 # TODO: Change the type of this option to a submodule with a
163 # TODO: Change the type of this option to a submodule with a
161 # freeformType, so that individual arguments can be documented
164 # freeformType, so that individual arguments can be documented
162 # separately
165 # separately