WSL: Difference between revisions
imported>Onny m Restructuring page |
imported>Onny Add note on update WSL |
||
Line 2: | Line 2: | ||
== Setup == | == Setup == | ||
Ensure that WSL is installed and up to date | |||
<syntaxhighlight lang="bash"> | |||
wsl --update | |||
</syntaxhighlight> | |||
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]. |
Revision as of 14:06, 24 January 2024
Notes on running NixOS on the Windows Subsystem for Linux (WSL, WSL2)
Setup
Ensure that WSL is installed and up to date
wsl --update
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