When your gradle plugin registers, you can inject your ksp module as a dependency to relevant sourceSet. Both needs to be published before this works.
However this is a bit intrusive and not a standard practice. Usually you expect a user to applu your plugin, apply ksp plugin and add your processor as ksp dependency to relevant sourceSet.