WSL: Difference between revisions
imported>Onny mNo edit summary |
imported>Onny m Restructuring page |
||
Line 11: | Line 11: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Start it | == Usage == | ||
Start it with PowerShell | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
wsl -d NixOS | wsl -d NixOS | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 13:26, 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
Usage
Start it with PowerShell
wsl -d NixOS