Replies: 1 comment 4 replies
-
sonowz/vscode-remote-wsl-nixos#2 (comment) The key is to find out what environment exactly the script is running. In a devos devshell, for example, a patched version of I also think The best way forward, in my opinion, is to make this script available as a package that substitutes all necessary bins directly from That way, there is no need for indirections through a nix-shell and all the associated problems. The file probably can be put in place with home-manager, since I understand it must go into |
Beta Was this translation helpful? Give feedback.
-
Hi all,
My goal "stack" is Windows, WSL2, NixOS, DevOS, VS Code. The WSL2 distro here gets me most of the way there. There's also this nifty script patches the binaries used by NodeJS to be compatible with Nix. So using the two in conjunction, I can get VS code working as expected.
However, when I throw DevOS into the mix, it breaks. I'm hoping you guys can help me troubleshoot the issue. @sonowz commented that somewhere DevOS must be overriding
stdenv
, which is breaking his patch to NodeJS. Specifically, the library filelibstdc++.so.6
is availalbe in the default config, but not in my DevOS config. I wonder if this has to do with flakes, sincenix-env -i gcc
works in the default environment, but not when I'm using DevOS.I'd appreciate any help you guys can lend. The full thread with error messages and such is here: sonowz/vscode-remote-wsl-nixos#2 Hopefully once this is figured out we can include it a "WSL2 Profile" so this works out of the box 😃
Beta Was this translation helpful? Give feedback.
All reactions