From f41f95c2c187a49a4ef98b5d00fdf1a68c5f88ba Mon Sep 17 00:00:00 2001 From: Andrey Snow <148123+andoriyu@users.noreply.github.com> Date: Wed, 24 Apr 2024 01:34:18 -0700 Subject: [PATCH] Add instructions to enable WSL 2 (#458) * Add instructions to enable WSL 2 * Update README.md * Update README.md --------- Co-authored-by: Sandro --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6c113dc0..4494fb28 100644 --- a/README.md +++ b/README.md @@ -11,15 +11,21 @@ Modules for running NixOS on the Windows Subsystem for Linux ## Quick Start -1. Download `nixos-wsl.tar.gz` from [the latest release](https://github.com/nix-community/NixOS-WSL/releases/latest). +1. Enable WSL if you haven't done already: -2. Import the tarball into WSL: + - ```powershell + wsl --install --no-distribution + ``` + +2. Download `nixos-wsl.tar.gz` from [the latest release](https://github.com/nix-community/NixOS-WSL/releases/latest). + +3. Import the tarball into WSL: - ```powershell wsl --import NixOS $env:USERPROFILE\NixOS\ nixos-wsl.tar.gz ``` -3. You can now run NixOS: +4. You can now run NixOS: - ```powershell wsl -d NixOS