-
-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable direct installation with native systemd #243
Conversation
While this makes it possible to import a tarball where |
Alright, seems reasonable. I've been trying to get the installer to work with systemd, but this seems to be only possible with some ugly hacks, because
The good news is, the installer is unneccessary if we add
Another minor thing is that
|
670d8d7
to
8f0d947
Compare
Also, would it make sense to add the workaround from microsoft/WSL#8879 (comment) to properly display the service hierarchy with |
I'd rather wait for this to be fixed upstream, we don't want to rebuild systemd. |
Agreed, we shouldn't fix things that are broken on Microsoft's end. The goal is that NixOS behaves like any other WSL distro |
fd3a959
to
959cfdb
Compare
Do we even need an installer at all? Maybe we should just build everything into the tarball, and then have two tarballs, one for native systemd and one for syschdemd (and then drop syschdemd later). |
This PR removes the need for an installer with native systemd. Some time ago I've also successfully installed NixOS-WSL (syschdemd, no installer) by setting |
FWIW I'm pretty sure "--hard-dereference" works. I've used it successfully in the past. Also I think the upstream bug in libarchive might have been fixed and the version updated on windows. My system has |
Gonna close this in favor of #295 which removes the installer hackery entirely. |
With this fix
wsl.nativeSystemd = true
works in a fresh installation (should fix #156 (comment))Minimal working
configuration.nix
:Note that wsl should be restarted after import (
wsl --shutdown
)