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