README: clarify WSL means WSL2 (#315)

This commit is contained in:
Cole Helbling 2023-03-08 10:30:31 -08:00 committed by GitHub
parent 5fe7dd9828
commit b7d7afd02e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -149,7 +149,7 @@ jobs:
## In a container
In Docker/Podman containers or WSL instances where an init (like `systemd`) is not present, pass `--init none`.
In Docker/Podman containers or WSL2 instances where an init (like `systemd`) is not present, pass `--init none`.
> When `--init none` is used, only `root` or sudoers can run Nix:
>
@ -199,7 +199,7 @@ RUN nix run nixpkgs#hello
CMD [ "/usr/sbin/init" ]
```
## In WSL
## In WSL2
If [systemd is enabled](https://ubuntu.com/blog/ubuntu-wsl-enable-systemd) it's possible to install Nix as normal using the command at the top of this document: