nix.dev icon indicating copy to clipboard operation
nix.dev copied to clipboard

Windows WSL2 doesn't support --daemon

Open ChrisJefferson opened this issue 3 years ago • 3 comments

On https://nix.dev/tutorials/install-nix.html

WSL2 (the latest version of WSL on Windows) doesn't have systemd, so I need to pass --no-daemon . I don't have a WSL install to test if that supports --daemon I'm afraid.

Seeing as WSL is intended (I think) as a single-user distro mostly anyway (each windows user gets their own linux installation), I don't think this will be a major problem.

ChrisJefferson avatar Aug 26 '20 08:08 ChrisJefferson

While there, maybe change the nix-shell instruction to:

Check that the installation was successful by opening a new terminal and typing:

ChrisJefferson avatar Aug 26 '20 08:08 ChrisJefferson

You can get your daemon by enabling the systemd hack as found here: https://github.com/shayne/wsl2-hacks

WSLUser avatar Aug 09 '21 19:08 WSLUser

Updated: https://nix.dev/tutorials/install-nix#windows-wsl2

Looks good now?

domenkozar avatar Aug 19 '21 13:08 domenkozar

This has long since been fixed, just having a cleanup of my old issues :)

ChrisJefferson avatar Nov 05 '22 06:11 ChrisJefferson