I successfully installed VS Code Remote inside my WSL NixOS by following this guide: https://nix-community.github.io/NixOS-WSL/how-to/vscode.html. All good there.
I can manually install extensions using the VS Code UI, which is also fine. But I’d like the setup to be reproducible.
The guide about VS Code on the NixOS wiki (https://nixos.wiki/wiki/Visual_Studio_Code) only mentions configuring extensions in programs.vscode
, which doesn’t apply in WSL.
How can I install the extensions so that they’re ready after running home-manager switch
?
I know I could probably do it with home.file.".vscode-server/extensions/extensions.json"
by putting the whole JSON there, but that would make it hard to update and add new extensions over time.
What would you recommend?
Thank you.