From 3befb10786c9e79d6fa80e9619d291489b08a579 Mon Sep 17 00:00:00 2001 From: Glauber Santana Date: Thu, 29 Aug 2024 12:56:41 -0300 Subject: [PATCH] docs: fix WSL import command option order 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. --- README.md | 2 +- docs/src/install.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index eede923c..80bc14c8 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/docs/src/install.md b/docs/src/install.md index fb10faa4..017db1a5 100644 --- a/docs/src/install.md +++ b/docs/src/install.md @@ -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.