!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

314 Members
https://github.com/nix-community/NixOS-WSL50 Servers

Load older messages


SenderMessageTime
28 Mar 2025
@andrewca:matrix.orgAndrew Carter I'm trying out NixOS WSL on an Windows 11 Arm machine. I'm getting [nixos@nixos:~]$ sudo nix-channel --update cannot get capabilities for /proc/self/exe: Not supported when I try to do an update. In fact, any sudo does this. I've not seen an error like this before. Is NixOS supported on Arm? 23:02:51
29 Mar 2025
@k900:0upti.meK900 NixOS is supported, but I don't think we build nixos-wsl tarballs for it? 04:25:36
@k900:0upti.meK900But it should fundamentally be possible04:25:40
@k900:0upti.meK900Just that no one has the hardware to test it and keep it working04:25:50
@k900:0upti.meK900 You can't 04:26:00
@k900:0upti.meK900 You d 04:26:03
@k900:0upti.meK900* You do04:26:04
@amihsekai:matrix.orgthou-vow
In reply to @k900:0upti.me
You do
Sometimes I'm not on my personal devices, but want to bring my environment there without much effort
05:36:12
@k900:0upti.meK900And you have NixOS on those devices, with root access? 05:36:43
@k900:0upti.meK900Then they're effectively personal devices 05:36:52
@amihsekai:matrix.orgthou-vowNo root access, but they have WSL05:37:20
@amihsekai:matrix.orgthou-vow* No privileges, but they have WSL05:37:50
@k900:0upti.meK900So you do have root access to WSL05:37:56
@k900:0upti.meK900In which case you can have a generic "WSL" configuration I guess 05:38:08
@amihsekai:matrix.orgthou-vowI was able to install NixOS WSL there05:39:04
@amihsekai:matrix.orgthou-vowBut maybe I don't need that05:39:27
@amihsekai:matrix.orgthou-vowI've been thinking, home-manager and nix-shell can do everything I need05:41:18
@amihsekai:matrix.orgthou-vowThanks for your advices05:42:15
@andrewca:matrix.orgAndrew CarterThanks - as I looked into it, I realized that was the issue. I can cross-compile a build myself from an Intel WSL Nix right?19:17:11
@k900:0upti.meK900Uhhh 19:19:01
@k900:0upti.meK900Maaaaaybe? 19:19:04
@k900:0upti.meK900I don't know if anyone actually tried 19:19:10
@k900:0upti.meK900I think you'll have a better chance getting Nix on another aarch64 distro 19:19:26
@k900:0upti.meK900Then using that to build the tarball19:19:31
@andrewca:matrix.orgAndrew CarterI'll try setting up a Linux guest on hyper-v on this machine and see if I can build there.19:23:05
@k900:0upti.meK900You should be able to just grab an Ubuntu WSL image 19:23:24
@k900:0upti.meK900Or whatever they officially offer for aarch64 19:23:31
1 Apr 2025
@mwoodpatrickmx:matrix.orgmwoodpatrickmxI'm trying to run xterm on NixOs on WSL-2 but I'm getting xterm: cannot load font "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1" does anyone know how to fix01:36:13
@k900:0upti.meK900 You probably need to enable services.xserver so it installs the ancient bitmap fonts 01:40:23
@k900:0upti.meK900Or maybe don't use xterm lol 01:40:30

Show newer messages


Back to Room ListRoom Version: 9