NixOS on WSL | 345 Members | |
| https://github.com/nix-community/NixOS-WSL | 61 Servers |
| Sender | Message | Time |
|---|---|---|
| 8 Mar 2023 | ||
| To change all of them | 09:54:21 | |
Yes, ran like this: sudo chown -R i97henka:users /home/i97henka/Seems better now. | 10:00:44 | |
| Thank you again for your help K900 . | 10:02:12 | |
| What do I need to set for nix-ld to work vscode-remote-server? see https://github.com/nix-community/NixOS-WSL/issues/222#issuecomment-1461022258 | 23:21:49 | |
| For me, it was just this: https://nixos.wiki/wiki/Visual_Studio_Code#nix-ld | 23:26:06 | |
| 9 Mar 2023 | ||
| trying that in the next days, thanks | 00:26:43 | |
setting "remote.WSL2.connectionMethod": "wsl2VMAddress" did the trick. Probably some variable loading issue, again | 10:55:21 | |
| 17:45:33 | ||
but I don't have environment.variables set | 10:55:58 | |
though the nix-ld option already sets it to NIX_LD = "/nix/store/axkalfklvygxjlmc9vivkyb4xy18v30f-ld.so"; NIX_LD_LIBRARY_PATH = "/run/current-system/sw/share/nix-ld/lib"; | 10:58:53 | |
| 10 Mar 2023 | ||
| When you run a perl program (or just
It does not happen on my server, which is built from the same flake and I've checked that | 18:01:26 | |
| What shell is that? | 18:54:10 | |
| ZSH with a prompt that makes it look like powershell when I'm on a windows drive | 18:54:53 | |
| I wonder if you're missing /etc/set-environment somehow | 18:56:30 | |
What if you source /etc/set-environment manually? | 18:56:41 | |
| That doesn't change anything unfortunately
On a bare-metal NixOS server is says 22 strings. Maybe that's got something to do with it
| 19:39:54 | |
| * That doesn't change anything unfortunately
On a bare-metal NixOS server is says 22 strings. Maybe that's got something to do with it?
| 19:40:04 | |
Hmm, I copied the locale-archive from the server to my local maching and when I run LOCALE_ARCHIVE=$PWD/locale-archive perl it works | 19:41:56 | |
| Sus | 19:42:23 | |
| Just found this in
| 19:44:19 | |
| RIP | 19:45:37 | |
| I removed it and it works now what a miracle 🙄 | 19:46:16 | |
| 11 Mar 2023 | ||
| Hi, I am trying to get vscode running remotely on my nixos wsl instance. I have cloned Then I make the file executable and run it. It seems to work fine. Then I try in the nixos wsl instance command line: I get the following error in the vscode windows gui: and there I press ignore to view the wsl terminal content which is:
Trying the best I can to understand and work with that log, it seems that the My own hunch what might be the problem: When I launch wsl from windows terminal, I specify the distribution name and the user, whereas above on this line, only the distro is specified.
Do you know how I can specify the user in the launch command? | 12:25:03 | |
Download vscodeerror.png | 12:25:12 | |
| You probably want to just use nix-ld | 12:26:06 | |
programs.nix-ld.enable = true | 12:26:10 | |
| Without any of the other stuff | 12:26:16 | |
In reply to@sandro:supersandro.deYou may also need this | 12:26:49 | |
| Thank you K900 , I don't even know what that nix-ld is yet 😆, but I'll investigate - much appreciated, I would never have found this out myself. I'll keep you posted on my progress. | 12:28:40 | |
| I added nix-ld successfully I think in my configuration.nix. I kept the running the code . command in the nixos command line now gives the following result.
I gave it a couple of reruns to make sure that the result is consistent. Was I supposed to keep that server-env-setup script in the .vscode-server? What I realise that I haven't done yet is setting the | 12:49:25 | |