!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

332 Members
https://github.com/nix-community/NixOS-WSL55 Servers

Load older messages


SenderMessageTime
15 Nov 2022
@nzbr:nzbr.denzbr (they/it)But it is possible12:55:39
@k900:0upti.meK900 You can just add wsl -e true to startup 12:57:42
@nzbr:nzbr.denzbr (they/it) -e bypasses the user shell (and thus syschdemd) 12:58:55
@nzbr:nzbr.denzbr (they/it)distrod has a working solution, I'm looking into it right now12:59:31
@nzbr:nzbr.denzbr (they/it) Ok, you need to grab this file from distrod 13:02:54
@nzbr:nzbr.denzbr (they/it) In there replace {{USER_NAME}} with your Windows username, \{{TASK_NAME}} with \StartNixOS (the name doesn't matter as long as it contains no spaces and you keep the backslash) and {{DISTRO_NAME}} with the name you imported NixOS as (probably NixOS). Each of these should appear exacly once in the file 13:05:45
@nzbr:nzbr.denzbr (they/it)

Then you should be able to add it to Task Scheduler by running

schtasks.exe /create /ru YOURUSERNAMEHERE /tn StartNixOS /xml .\distrod_autostart.xml

in an admin powershell

13:08:13
@nzbr:nzbr.denzbr (they/it) I hope that works, haven't tested it myself yet 13:09:41
@michael_j_ward:matrix.orgmichael_j_wardThank you. In the end, your help led me to windows built in Task Scheduler, and I was able to follow the GUI to create the StartNixOS task :D https://superuser.com/a/954969/75516013:50:43
@michael_j_ward:matrix.orgmichael_j_ward Also thanks for alerting me to wsl-distrod. Do you know if that work was incorporated into WSL now that WSL natively supports systemd? 13:53:01
@k900:0upti.meK900No, it's an independent implementation 13:53:42
@k900:0upti.meK900You can use it with NixOS if you're OK with some jank 13:53:53
16 Nov 2022
@sandro:supersandro.deSandro 🐧FYI https://github.com/microsoft/WSL/releases/tag/1.0.000:57:35
@k900:0upti.meK900Oh dear god07:13:47
@k900:0upti.meK900Why now 07:13:53
@nzbr:nzbr.denzbr (they/it)It's about as done as Windows 11 on release11:43:58
@k900:0upti.meK900 I'm not sure why 1.0 and why now 11:46:42
@k900:0upti.meK900Like, I'd expect 1.0 to be the initial release11:46:50
@k900:0upti.meK900 Which was the non-Store version 11:46:57
@k900:0upti.meK900And I'd also expect a major bump after they're done with the systemd stuff 11:47:10
@nzbr:nzbr.denzbr (they/it) Because now we have to specify version numbers like WSL v2 Windows-Store v1.0.0 - what's not to love about that? /s 11:55:26
@nzbr:nzbr.denzbr (they/it) I tried to update, but the latest version in the store and with wsl --update seems to still be 0.70.5.0 12:00:47
@sandro:supersandro.deSandro 🐧
In reply to @k900:0upti.me
Why now
Counter question: why not?
16:11:06
@k900:0upti.meK900systemd is still horribly busted for many use cases16:11:33
@omlet:matrix.orgomlet joined the room.20:34:22
17 Nov 2022
@nzbr:nzbr.denzbr (they/it) They seem to have working systemctl --user now 11:56:27
@k900:0upti.meK900Do they?12:02:06
@nzbr:nzbr.denzbr (they/it)image.png
Download image.png
12:03:06
@k900:0upti.meK900Oh yeah12:04:18
@k900:0upti.meK900It's actually running now12:04:21

Show newer messages


Back to Room ListRoom Version: 9