!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

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

Load older messages


SenderMessageTime
24 Aug 2025
@ptramo:matrix.orgPierre CarrierI was hoping for a one-command build process in the flake setup17:32:42
@ptramo:matrix.orgPierre Carrierhaven't dug yet sorry, I'm without linux at the moment, but I'll get another wsl going17:33:10
@k900:0upti.meK900No one command17:34:21
@k900:0upti.meK900But you basically want to change the system here: https://github.com/nix-community/NixOS-WSL/blob/main/flake.nix#L3917:34:35
@k900:0upti.meK900 And then nix build .#nixosConfigurations.default.config.system.build.tarballBuilder 17:34:48
@k900:0upti.meK900And then run the result of that17:34:59
@k900:0upti.meK900 And that should produce a nixos.wsl you can install 17:35:53
@ptramo:matrix.orgPierre Carrierthat is one command17:41:54
@k900:0upti.meK900At least two, technically17:42:09
@ptramo:matrix.orgPierre Carriercool cool cool, thanks17:42:10
@ptramo:matrix.orgPierre Carrierit's happening. hype17:51:00
@nzbr:nzbr.denzbr (they/it)
In reply to @ptramo:matrix.org
yeah I can run nix in ubuntu in wsl right
The CI images are built on Ubuntu, so that should work fine
17:52:54
@ptramo:matrix.orgPierre Carrieryup it did, all working great17:57:04
@ptramo:matrix.orgPierre Carrierwell no, can't use cursor. the ld trick doesn't work, the install script cannot find any command19:09:16
@k900:0upti.meK900Depends on how the script is implemented19:11:05
@k900:0upti.meK900Can't really help you with that19:11:11
@k900:0upti.meK900And it's probably not aarch64 specific either19:11:19
@ptramo:matrix.orgPierre Carriernope19:11:24
@ptramo:matrix.orgPierre Carrierhttps://github.com/zoid-archive/nixos-cursor-server mentions only partial work on wsl support. tried it anyway, no better19:12:08
@cpt.chaos:abot.xyztweber83Have you tried just using nix-ld to get it running? https://nix-community.github.io/NixOS-WSL/how-to/vscode.html19:36:22
@ptramo:matrix.orgPierre Carrieryes19:37:47
@ptramo:matrix.orgPierre Carrierthat's what I called "the ld trick" sorry19:38:11
@ptramo:matrix.orgPierre Carrierimage.png
Download image.png
19:41:28
@k900:0upti.meK900 There's presumably a bash script to bootstrap the server 19:41:32
@ptramo:matrix.orgPierre Carrierfails like so19:41:36
@k900:0upti.meK900 Which presumably explodes 19:41:36
@ptramo:matrix.orgPierre Carrierindeed19:41:42
@k900:0upti.meK900Normal vscode works, fwiw19:41:53
@ptramo:matrix.orgPierre Carrierwhich is a tad weird because when launching from the CLI a bunch of stuff gets extracted already19:42:17
@ptramo:matrix.orgPierre Carrierwell that's quite unfortunate, sadly I need it for work19:59:39

Show newer messages


Back to Room ListRoom Version: 9