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