!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

325 Members
https://github.com/nix-community/NixOS-WSL55 Servers

Load older messages


SenderMessageTime
13 Sep 2025
@validitymaiden:matrix.orgvaliditymaiden joined the room.17:18:38
@validitymaiden:matrix.orgvaliditymaiden set a profile picture.17:31:42
@validitymaiden:matrix.orgvaliditymaiden changed their profile picture.17:32:23
14 Sep 2025
@rovey:matrix.org@rovey:matrix.org left the room.12:24:13
@xworld21:matrix.orgVincenzo left the room.18:37:25
@xworld21:matrix.orgVincenzo joined the room.18:37:53
15 Sep 2025
@undaunted2816:matrix.org@undaunted2816:matrix.org left the room.08:24:23
16 Sep 2025
@samuel:mnzn.devSamuel joined the room.08:06:52
17 Sep 2025
@yehvaed:matrix.orgdeclnix changed their display name from yehvaed to declnix.16:42:53
19 Sep 2025
@bl1nk:matrix.orgbl1nk changed their profile picture.15:22:59
@bl1nk:matrix.orgbl1nk changed their profile picture.15:25:08
21 Sep 2025
@zobweyt:matrix.orgNikita Gaziev joined the room.08:14:44
22 Sep 2025
@declnix:matrix.orgdeclnix joined the room.15:21:50
@declnix:matrix.orgdeclnix changed their profile picture.22:35:51
23 Sep 2025
@a-kenji:matrix.orgkenji changed their display name from a-kenji to kenji.10:38:56
@declnix:matrix.orgdeclnix

Hi, I'm experiencing some weird issues with code and NixOS on WSL. Has anyone else encountered a similar problem?

➜  ~ where code
/mnt/c/Users/User/AppData/Local/Programs/Microsoft VS Code/bin/code
➜  ~ where code
➜  ~ code nix-config
/mnt/c/Users/User/AppData/Local/Programs/Microsoft VS Code/Code.exe:1
MZx

SyntaxError: Invalid or unexpected token
    at wrapSafe (node:internal/modules/cjs/loader:1472:18)
    ...
Node.js v20.19.4

It looks like code is trying to execute a binary as a Node.js script. Not sure what's going on.

10:52:04
@k900:0upti.meK900 Do you have a custom binfmt registration for Node or something
10:54:02
@declnix:matrix.orgdeclnix

To be honest it is kind good question

➜  ~ mount | grep binfmt_misc
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
➜  ~ ls /proc/sys/fs/binfmt_misc
 register   status   WSLInterop-late
➜  ~ cat /proc/sys/fs/binfmt_misc/WSLInterop-late
───────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: /proc/sys/fs/binfmt_misc/WSLInterop-late
───────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ enabled
   2   │ interpreter /init
   3   │ flags: P
   4   │ offset 0
   5   │ magic 4d5a
───────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
➜  ~     
11:02:31
@k900:0upti.meK900Hm that seems normal11:03:04
@declnix:matrix.orgdeclnixIf it is crucial for sometime I was trying to use https://github.com/nix-community/nixos-vscode-server11:18:53
@nzbr:nzbr.denzbr (they/it)Can you connect through the vscode ui instead of the terminal? Does that work?11:26:28
@declnix:matrix.orgdeclnixYes it works through ui11:29:52
24 Sep 2025
@JRoll506:matrix.orgRyanBruno joined the room.15:15:05
25 Sep 2025
@dvtkrlbs:matrix.org@dvtkrlbs:matrix.org left the room.22:24:42
26 Sep 2025
@jaculabilis:matrix.orgjaculabilis joined the room.04:55:39
29 Sep 2025
@jananders:matrix.org@jananders:matrix.org left the room.13:04:34
30 Sep 2025
@17lifers:mikuplushfarm.ovh17lifers (at mikuplushfarm) joined the room.16:05:18
@17lifers:mikuplushfarm.ovh17lifers (at mikuplushfarm) 16:07:10
1 Oct 2025
@17lifers:mikuplushfarm.ovh17lifers (at mikuplushfarm) left the room.18:06:21
6 Oct 2025
@rosssmyth:matrix.orgrosssmyth

I switched to using Colmena for all my machine's config today. I ran apply-local on my WSL machine and then afterwards ran sudo nix-collect-garbage -d. While the collector was running it suddenly aborted with:

Wsl/Service/E_UNEXPECTED

And when I pressed enter to restart that would just reappear. If I exit WSL, use wsl --shutdown then open WSL again, it works fine. But if I run the collector again it aborts.

04:28:05

Show newer messages


Back to Room ListRoom Version: 9