Open relief-melone opened 1 year ago
Also struggling with this one too.
Having the same issue. Adding coreutils
to environment.systemPackages
did not help either.
Try this (add to system configuration):
{ lib, pkgs, ... }: {
wsl.extraBin = [
{ src = lib.getExe' pkgs.coreutils "uname"; }
];
}
Thanks @Prince213. Adding the following (and installing wget) worked for me:
wsl.extraBin = [
{ src = lib.getExe' pkgs.coreutils "dirname"; }
{ src = lib.getExe' pkgs.coreutils "readlink"; }
{ src = lib.getExe' pkgs.coreutils "uname"; }
];
I am unfortunately unable to connect to nixos from vs code. The setup works fine. the service gets created and I use systemctl to start it. However when starting
code
from within wsl or connecting from VSCode from my Host machine it errors with the followingNow what I found is that when connecting to the wsl instance in a shell first
everything works fine
However when running the same command directly from the host machine
it will error out with uname not being found just like in the VSCode instance. This might also be related to this issue on NIXOS-WSL https://github.com/nix-community/NixOS-WSL/issues/222
I know wsl support is still a wip in this project but it seems like people have been able to make it work. It would be great if someone had the knowledge what I can do to connect.