Vimspector gadgets installation

Hi all! I am trying NixOS as my main OS. As a developer, I use Vim, and vimspector.

I’m using home-manager (as a module) and I’m having a hard time installing the vimspector gadgets and I can’t find any interesting resources on the Internet.

Adapters are usually installed using the :VimspectorInstall <adapter> <args...> command. Trying this, I get this error:

OSError: [Errno 30] Read-only file system: '/nix/store/y3za4lza5pfl82k5frb2haz1cf4x3a5b-vimplugin-vimspector-2023-05-09/gadgets'

I’ve looked on the NixOS documentation, on the option’s appendix and even on YouTube but nothing.
If you’ve got a clue, I’d love to hear from you!

Thanks a lot!

Did you ever figure it out?
I’d love to compare notes if you did because I tried searching the internet too and didn’t find anything either.

What I ended up doing was going to their github repo, cloning it, and using the install_gadget.py python script to generate me a base gadgets folder.

From their, I looked at the generated .gadgets.json file and generated my own in nix and now it works.
I mostly do C++ and Python so I setup CodeLLDB with debugpy.
I put up my home-manager config here on my github repo if someone else finds this thread.