| 13 Nov 2022 |
nzbr (they/it) | They should validate that file, when you try to boot the WSL VM, but probably decided that the don't want it to not boot if there's something wrong. But like - at least print a warning or something like that | 17:16:33 |
nzbr (they/it) | You can enable a debug console, but every time I tried, it just instantly closed itself | 17:17:06 |
K900 | The debug console is just dmesg from the VM | 17:17:56 |
nzbr (they/it) | In reply to @k900:0upti.me Honestly I am still very impressed by the fact that WSL somehow does not have an out of band error log If there is, I guess its buried deeeeep in event viewer | 17:19:54 |
K900 | I couldn't find anything there last time I made it not boot | 17:20:06 |
nzbr (they/it) | Microsofts Troubleshooting website is rather lacking - a lot of the things on there only apply to ubuntu anyway | 17:26:41 |
| 15 Nov 2022 |
| michael_j_ward joined the room. | 12:38:00 |
michael_j_ward | I am fairly novice at windows, so apologies. Is there a way to have windows start my nixos WSL distribution on powerup
I have a desktop box in an office which unfortunately loses power frequently, and I would like the WSL to start-up automatically when power recovers.
| 12:53:43 |
nzbr (they/it) | Not officially as far as I am aware | 12:54:54 |
michael_j_ward | gracias | 12:55:19 |
nzbr (they/it) | But it is possible | 12:55:39 |
K900 | You can just add wsl -e true to startup | 12:57:42 |
nzbr (they/it) | -e bypasses the user shell (and thus syschdemd) | 12:58:55 |
nzbr (they/it) | distrod has a working solution, I'm looking into it right now | 12:59:31 |
nzbr (they/it) | Ok, you need to grab this file from distrod | 13:02:54 |
nzbr (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 (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 (they/it) | I hope that works, haven't tested it myself yet | 13:09:41 |
michael_j_ward | Thank 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/755160 | 13:50:43 |
michael_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 | No, it's an independent implementation | 13:53:42 |
K900 | You can use it with NixOS if you're OK with some jank | 13:53:53 |
| 16 Nov 2022 |
Sandro 🐧 | FYI https://github.com/microsoft/WSL/releases/tag/1.0.0 | 00:57:35 |
K900 | Oh dear god | 07:13:47 |
K900 | Why now | 07:13:53 |
nzbr (they/it) | It's about as done as Windows 11 on release | 11:43:58 |
K900 | I'm not sure why 1.0 and why now | 11:46:42 |
K900 | Like, I'd expect 1.0 to be the initial release | 11:46:50 |
K900 | Which was the non-Store version | 11:46:57 |
K900 | And I'd also expect a major bump after they're done with the systemd stuff | 11:47:10 |