NixOS does not normally install libraries in a FHS layout, which means that binaries compiled for other Linux platforms typically will not work. Visual Studio Code's Remote SSH extension transfers a NodeJS binary and a binary library built by Microsoft that must be patched to be used on NixOS.
Prior to April 2021, this could simply be done by replacing .vscode-server/bin/*/node
with nodejs-12_x
; after April 2021,
there is also a library module that is not compatible with nodejs-12_x
. Therefore, it is necessary to patch these two ELF
files.