Install NixOS-WSL (Older WSL versions)
mainIf you are using a WSL version older than 2.4.4, you must manually import the distribution using the wsl --import command. This example installs the distribution named NixOS into a directory named NixOS within your user profile.
Note: nixos.wsl refers to the file downloaded from the latest release (previously named nixos-wsl.tar.gz in versions prior to 2411).
wsl --import NixOS $env:USERPROFILE\NixOS nixos.wsl --version 2