I am using NixOS as my home development server to take advantage of its greater build power. I want to use the Remote SSH feature in VSCode, and my current NixOS configuration looks like this:
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
....
vscode
(vscode-with-extensions.override {
vscodeExtensions = with vscode-extensions; [
ms-vscode-remote.remote-ssh
];
})
];
However, I’m encountering the following error in NixOS:
how I can fix this "➜ ~ .vscode-server/cli/servers/Stable-384ff7382de624fb94dbaf6da11977bba1ecd427.staging/server/bin/code-server --version
Could not start dynamically linked executable: /home/vincenzopalazzo/.vscode-server/cli/servers/Stable-384ff7382de624fb94dbaf6da11977bba1ecd427.staging/server/node
NixOS cannot run dynamically linked executables intended for generic
linux environments out of the box. For more information, see:
https://nix.dev/permalink/stub-ld"
Does anyone know how to fix this error? Has anyone successfully resolved this issue before?