How to declaratively install Libreoffice extensions?

Hey there!

I suppose this needs home-manager, but maybe there is also a way to install Libreoffice extensions systemwide.

I have managed to “declaratively” install libreoffice extensions in ansible before, simply by downloading the file and running unopkg add /tmp/extension.oxt.

Tbh that is very simple and worked. I guess here I would need to unpack the extension and build a derivation from it, or use a packaged extension.

Has anyone already done this?