WSL 2 is out. Better support for Nix

Hello everyone,

I’ve been woking upon this project as a base on my spare time. I’ve modified GitHub - nix-community/NixOS-WSL: NixOS on WSL(2) [maintainer=@nzbr] to build a generic image where you can set your username (like in other WSL distros).

I’ve also plugged a GitHub Action to build the image and attach it as a release asset, its available here: https://github.com/Elyhaka/NixOS-WSL/releases/tag/0.0.2

Then, I’ve created the launcher for this image, you can find it as an artifact here: https://github.com/Elyhaka/NixOS-WSL-DistroLauncher/actions/runs/121288892

If you download the launcher.exe and the install.tar.gz in the same directory and then you execute the launcher.exe it should spawn a working NixOS setup.

This is a work in progress, there are a lot of issues in the current setup before building a redistributable appx.

EDIT: I’ve made a more complete post about it

16 Likes