Non-interactive bash errors from flake.nix mkShell

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

  1. Added buildInputs = [ pkgs.bashInteractive ]; into the mkShell in flake.nix
  2. Closed VSCode.
  3. Ran nix develop
  4. Ran code . in the nix develop shell
  5. Kill terminal in VSCode for any open terminals! (trash can button)
  6. 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!

1 Like