Enable a module extension by default in a sefhosted directus instance

There seem to be no way to automatically enable a module extension by default (please correct me if I’m wrong) so I figured I would add a hook as well and enable it programmatically in ”init”/”app.after”.

Basically I build my directus docker image myself where I include these extensions. Problem is I cant figure out how to actually enable the module extension programmatically. I have access to the SettingsService and the database but the documentation for these internal tools is pretty sparse.

Any pointers as to how to achieve this?

Thanks!