!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

340 Members
https://github.com/nix-community/NixOS-WSL58 Servers

Load older messages


SenderMessageTime
26 Dec 2024
@lorenzleutgeb:matrix.orgLorenz Leutgeb changed their display name from Lorenz Leutgeb to Lorenz Leutgeb (📞6343).19:33:02
@lorenzleutgeb:matrix.orgLorenz Leutgeb changed their display name from Lorenz Leutgeb (📞6343) to Lorenz Leutgeb 📞6343.19:36:18
27 Dec 2024
@dimitarnestorov:matrix.orgDimitar set a profile picture.11:41:22
@dimitarnestorov:matrix.orgDimitar changed their display name from dimitarnestorov to Dimitar.11:42:01
29 Dec 2024
@mwoodpatrickmx:matrix.orgmwoodpatrickmxI'm trying to run vscode on NixOS 24.11 running on WSL-2 with nix-ld installed but I'm getting: /home/mwoodpatrick/.vscode-server/bin/fabdb6a30b49f79a7aba0f2ad9df9b399473380f/bin/code-server --host=127.0.0.1 --port=0 --connection-token=258513541-3459138071-4034234884-3707113654 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=al Could not start dynamically linked executable: /home/mwoodpatrick/.vscode-server/bin/fabdb6a30b49f79a7aba0f2ad9df9b399473380f/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 Anyone know what I need to do to fix or debug this? 03:33:24
@mwoodpatrickmx:matrix.orgmwoodpatrickmx* I'm trying to run vscode on NixOS 24.11 running on WSL-2 (using flakes) with nix-ld installed but I'm getting: /home/mwoodpatrick/.vscode-server/bin/fabdb6a30b49f79a7aba0f2ad9df9b399473380f/bin/code-server --host=127.0.0.1 --port=0 --connection-token=258513541-3459138071-4034234884-3707113654 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=al Could not start dynamically linked executable: /home/mwoodpatrick/.vscode-server/bin/fabdb6a30b49f79a7aba0f2ad9df9b399473380f/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 Anyone know what I need to do to fix or debug this? 03:37:16
@98765abc:mozilla.org98765abcRedacted or Malformed Event06:52:35
@98765abc:mozilla.org98765abc * You need add the missing libraries into
programs.nix-ld.libraries = with pkgs; [
06:53:08
@98765abc:mozilla.org98765abc docs/src/how-to/vscode.md 06:58:19
@mwoodpatrickmx:matrix.orgmwoodpatrickmxI read the "Setup VSCode Remote" and was trying to use method 1. as noted I do have nix_ld installed in my OS but it looks like the setup also involves setting up environment variables NIX_LD_LIBRARY_PATH and NIX_LD along with a shell hook. It would be helpful to include the details needed for vscode and update the doc to 24.11. Does anyone have the full set of changes needed for vscode on nixos running under WSL-2.12:03:24
@k900:0upti.meK900nix-ld is enough12:04:52
@k900:0upti.meK900The environment variables don't need to be set12:04:59
@k900:0upti.meK900Modern nix-ld versions have sane defaults for thos12:05:07
@k900:0upti.meK900* Modern nix-ld versions have sane defaults for those12:05:07
@k900:0upti.meK900That error means you don't have nix-ld configured correctly at all12:06:04
@k900:0upti.meK900How did you install it?12:06:14
@mwoodpatrickmx:matrix.orgmwoodpatrickmxIn my nixos/configuration.nix I just added the package to systemPackages and reran the "sudo nixos-rebuild switch --flake <flake>" command and it did install the package and I saw that nix-ld was indeed available. It was not clear to me what other configuration I needed to do in my case to get this working with 24.11 on wsl-2. What else so I need to do? 12:14:16
@k900:0upti.meK900 As the page says, you want programs.nix-ld.enable = true 12:16:56
@k900:0upti.meK900 Just adding it to systemPackages is not enough 12:17:04
@mwoodpatrickmx:matrix.orgmwoodpatrickmxThat worked, thank you13:08:41
@mwoodpatrickmx:matrix.orgmwoodpatrickmxIn the vscode settings any suggestions on how to set the setting "vscode-neovim.neovimExecutablePaths.linux"14:03:23
@nzbr:nzbr.denzbr (they/it)By the way, if any of you are currently at 38C3 and want NixOS-WSL Stickers, let me know22:10:38
@nzbr:nzbr.denzbr (they/it)Left a bunch of them at the NixOS assembly just now22:22:20
30 Dec 2024
@trudwin:matrix.orgtrudwin joined the room.10:11:53
1 Jan 2025
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.14:26:19
2 Jan 2025
@error_pro:matrix.orgerror_pro joined the room.10:11:36
@hashphoenix:matrix.orgOluwapelumi Adeosun joined the room.10:14:26
5 Jan 2025
@k900:0upti.meK900So this is fun16:31:14
@k900:0upti.meK900WSL never updates the systemd activation environment16:31:32
@nzbr:nzbr.denzbr (they/it) The base-distro you get to with --debug-shell or do the env vars? 21:13:02

Show newer messages


Back to Room ListRoom Version: 9