Skip to content

Commit

Permalink
docs: fix WSL import command option order
Browse files Browse the repository at this point in the history
The options such as --version should be placed at the end of the command. Updated the README and docs/install.md to reflect the correct command syntax.
  • Loading branch information
glwbr authored and nzbr committed Oct 13, 2024
1 parent 2454495 commit 3befb10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Modules for running NixOS on the Windows Subsystem for Linux
3. Import the tarball into WSL:

- ```powershell
wsl --import NixOS --version 2 $env:USERPROFILE\NixOS\ nixos-wsl.tar.gz
wsl --import NixOS $env:USERPROFILE\NixOS\ nixos-wsl.tar.gz --version 2
```

4. You can now run NixOS:
Expand Down
4 changes: 2 additions & 2 deletions docs/src/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ First, [download the latest release](https://github.com/nix-community/NixOS-WSL/
Then open up a PowerShell and run:

```powershell
wsl --import NixOS --version 2 $env:USERPROFILE\NixOS\ nixos-wsl.tar.gz
wsl --import NixOS $env:USERPROFILE\NixOS\ nixos-wsl.tar.gz --version 2
```

Or for Command Prompt:

```cmd
wsl --import NixOS --version 2 %USERPROFILE%\NixOS\ nixos-wsl.tar.gz
wsl --import NixOS %USERPROFILE%\NixOS\ nixos-wsl.tar.gz --version 2
```

This sets up a new WSL distribution `NixOS` that is installed in a directory called `NixOS` inside your user directory.
Expand Down

0 comments on commit 3befb10

Please sign in to comment.