WSL: Difference between revisions

From NixOS Wiki
imported>Onny
Initial page
 
imported>Onny
mNo edit summary
Line 5: Line 5:
Download the latest release of <code>nixos-wsl.tar.gz</code> from the [https://github.com/nix-community/NixOS-WSL/releases NixOS-WSL Github page].
Download the latest release of <code>nixos-wsl.tar.gz</code> from the [https://github.com/nix-community/NixOS-WSL/releases NixOS-WSL Github page].


Import the WSL container
Import the WSL container using PowerShell


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">

Revision as of 11:48, 24 January 2024

Notes on running NixOS on the Windows Subsystem for Linux (WSL, WSL2)

Setup

Download the latest release of nixos-wsl.tar.gz from the NixOS-WSL Github page.

Import the WSL container using PowerShell

wsl --import NixOS .\NixOS\ nixos-wsl.tar.gz --version 2

Start it

wsl -d NixOS