I’m using VSCode Remote SSH to connect to a NixOS host. I haven’t changed anything on the NixOS host side since my last successfully connection. However now, presumably after updating VSCode, I’m seeing an error whenever I attempt to open the terminal pane:
cannot execute /home/skainswo/dev/nixpkgs: NIX_LD or NIX_LD_x86_64-linux is not set
and then an error window stating
The terminal process "/run/current-system/sw/bin/zsh" terminated with exit code: 1.
However, when I test this out via SSH it works just fine:
$ ssh my-machine
skainswo in doodoo in ~
❯ /run/current-system/sw/bin/zsh
skainswo in doodoo in ~
❯ exit
skainswo in doodoo in ~ took 8s
❯ /run/current-system/sw/bin/zsh --version
zsh 5.8.1 (x86_64-pc-linux-gnu)
Any idea what might be causing this? Presumably it’s some kind of NIX_LD issue, but why would that cause zsh to fail to start? And why only in VSCode?