!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

341 Members
https://github.com/nix-community/NixOS-WSL58 Servers

Load older messages


SenderMessageTime
30 Jan 2023
@k900:0upti.meK900All the errors bubble up to main and THEN panic13:55:13
@k900:0upti.meK900So the backtrace will look exactly like this every time13:55:23
@k900:0upti.meK900But the error object itself will preserve context13:55:35
@sandro:supersandro.deSandro 🐧
In reply to @k900:0upti.me
Oh wow how did you even do that
run it as normal user through envfs
14:03:09
@k900:0upti.meK900Oh14:03:13
@k900:0upti.meK900Yeah that makes sense14:03:16
@k900:0upti.meK900The very first thing it does is open /dev/kmsg14:03:25
@k900:0upti.meK900Because that's pretty much the only place we can log to that is reasonably user-accessible14:03:51
@k900:0upti.meK900And this is also the only place we panic14:04:29
@k900:0upti.meK900If anything after this fails, it goes into kmsg14:04:42
@k900:0upti.meK900Actually maybe we should make the shim explode if it's not running as pid114:06:14
@k900:0upti.meK900Also I just realized this isn't entirely accurate14:06:57
@k900:0upti.meK900 We can also panic if there's no argv[0] 14:07:06
@k900:0upti.meK900 But that should definitely never happen if we're init 14:07:12
@sandro:supersandro.deSandro 🐧Do we still need https://github.com/nix-community/NixOS-WSL/blob/main/modules/wsl-distro.nix#L65-L68 ? For me wslpath from /bin is used14:09:33
@k900:0upti.meK900Probably not14:10:08
@k900:0upti.meK900https://github.com/nix-community/NixOS-WSL/blob/main/modules/wsl-distro.nix#L10314:10:08
@k900:0upti.meK900Though I guess you could technically not have /bin on PATH at all14:10:55
@sandro:supersandro.deSandro 🐧
In reply to @k900:0upti.me
Actually maybe we should make the shim explode if it's not running as pid1
I would suggest to add some helpful message that the binary should not be run manually and things are different from what we expect
14:11:33
@k900:0upti.meK900Sounds good to me14:11:56
@k900:0upti.meK900Want to PR it? I feel like complete shit so I probably won't get to it until tomorrow 14:12:45
@sandro:supersandro.deSandro 🐧https://github.com/nix-community/NixOS-WSL/pull/20914:12:55
@sandro:supersandro.deSandro 🐧Can we easily make https://github.com/nix-community/NixOS-WSL/blob/main/modules/wsl-distro.nix#L31-L35 available to envfs?14:54:16
@sandro:supersandro.deSandro 🐧I guess thgrough an internal option14:54:31
@k900:0upti.meK900I don't think we want to 14:55:37
@k900:0upti.meK900That whole thing is one big hack to make WSL's init happy 14:55:54
@sandro:supersandro.deSandro 🐧I need it for envfs at evaluation time14:59:48
@sandro:supersandro.deSandro 🐧I'll make it readOnly and internal so no one can see it14:59:58
@sandro:supersandro.deSandro 🐧Also FYI I am probably doing a PR to convert the options to mdDoc in the future for a side project 15:00:34
31 Jan 2023
@nzbr:nzbr.deArson Copperflame
In reply to @sandro:supersandro.de
Also FYI I am probably doing a PR to convert the options to mdDoc in the future for a side project
I wanted to put something like Antora UI in there, but I haven't gotten around to that yet. What is your plan exactly?
00:08:47

Show newer messages


Back to Room ListRoom Version: 9