Thanks for posting this. I had to do one more small thing in VSCode to make it work (see step 5). This is what I did
- Added
buildInputs = [ pkgs.bashInteractive ];
into themkShell
in flake.nix - Closed VSCode.
- Ran
nix develop
- Ran
code .
in the nix develop shell - Kill terminal in VSCode for any open terminals! (trash can button)
- Opened a new terminal in VSCode, and the new terminal was interactive and working
I don’t know why I had to click “Kill Terminal” in VS Code even after following steps 1-4, but for whatever reason that was necessary.
Thank you for this solution!