WSL2
Windows is supported through WSL2. The repository commands run inside Linux, not directly in PowerShell. We use openSUSE Tumbleweed as the primary development distribution because it provides a reliable, rolling-release foundation for Nix and QEMU.
Check WSL From PowerShell
Run these commands in PowerShell to verify your WSL status:
wsl --statuswsl --versionIf WSL is not installed, install it first and reboot Windows:
wsl --installInstall openSUSE Tumbleweed
Install the distribution:
wsl --install -d openSUSE-TumbleweedMake it the default distribution:
wsl --set-default openSUSE-TumbleweedEnsure it uses WSL2:
wsl --set-version openSUSE-Tumbleweed 2Start it:
wsl -d openSUSE-TumbleweedUpdate The Linux Environment
Inside the openSUSE shell:
sudo zypper refresh
sudo zypper updateInstall the base tools:
sudo zypper install git just qemu qemu-tools curl xz openssh sshpassInstall Nix
Install Nix inside openSUSE:
sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemonEnable flakes:
mkdir -p ~/.config/nix
cat > ~/.config/nix/nix.conf <<'EOF'
experimental-features = nix-command flakes
EOFRestart your shell to pick up the changes.
Lifecycle and Cleanup
Use these PowerShell commands to manage or remove the development distribution.
Stop the Distribution
If WSL hangs or you want to free up memory:
wsl --terminate openSUSE-TumbleweedCompletely Remove openSUSE
To delete the distribution and all files inside it (this is destructive!):
wsl --unregister openSUSE-Tumbleweed