-
-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue with getting nixos-wsl working with nixos-vscode-server: #31
Comments
I have had trouble using vscode with nixos-wsl too. Wasn't aware there was a nixos-vscode-server. I am also interested in a solution to this problem. |
The underlying issue is, that the systemd user deamon does not get started, because no session for the user is ever started. systemd.targets.user-daemon = {
wants = [ "user@${defaultUser}.service" ];
wantedBy = [ "multi-user.target" ];
}; This adds a unit that does nothing itself, but depends on the EDIT: Use a target instead of a service unit |
As of 89c644e the systemd user daemon gets started and many issues get fixed too. Make sure to update! |
The user daemon does indeed get started now and nixos-vscode-server works. However, trying to connect with the WSL remote in VSCode fails now (log attached). I managed to connect by enabling the SSH server in NixOS and then using the SSH remote to connect to localhost, but that is more of a workaround than a real fix |
I'm also able to get nixos-vscode-server to load nixos in windows vscode, but whenever I try to load the terminal or nix-env-selector I get errors similar to @nzbr . I'm going to use ubuntu+nix in wsl for now, until this issue gets fixed, |
The terminal does not work, because the nixos-vscode-server package uses an outdated version of nodejs. There are two open PRs against the nixos-vscode-server repo that fix this issue. The issue with the terminal is not limited to NixOS-WSL but instead affects NixOS installations on real hardware as well. As a workaround I am using my fork of the nixos-vscode-server repo until one of the PRs gets merged |
@nzbr , Thanks, I'll take a look at that, |
Hey, sorry for the stupid question, but how would I go about updating? Do I have to build the tarball from source and do Thanks for your great work! |
Extremely late reply but... You mostly update only the nix and sh files, you manually merge the changes in your own config. |
A fix has been merged and is included in the latest release |
Hello @Trundle ,
Just thought that maybe you could take a look at this nixos-vscode-server issue that I'm having, it might have something to do with nixos-wsl because I'm unable to get them connected and working?
nix-community/nixos-vscode-server#2
Thanks in advance for the help!
The text was updated successfully, but these errors were encountered: