Debugging C++ with VSCode and Nix-Shell

Alternatively you can add

programs.nix-ld.enable = true;

to your configuration.nix to fix the problem as I mentioned here: