!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

347 Members
https://github.com/nix-community/NixOS-WSL61 Servers

Load older messages


SenderMessageTime
31 Mar 2023
@k900:0upti.meK900And there's always an issue about PAM on the first page16:52:35
@k900:0upti.meK900And it's always a different one16:52:39
@k900:0upti.meK900Today's is https://github.com/microsoft/WSL/issues/988116:52:42
@nzbr:nzbr.deArson CopperflameIt took me literal weeks to get PAM working (well enough) with syschdemd. I don't envy them, lol. PAM is a dumpster fire of a software16:54:37
@k900:0upti.meK900PAM isn't too bad if you use it correctly tbh16:55:21
@k900:0upti.meK900It's just that syschdemd does things that absolutely do not fall under "using it correctly"16:55:38
@nzbr:nzbr.deArson Copperflame"Open a shell that runs in a PAM session" sounds like something that should be a supported usecase, tbh. The problem is that as far as I understood that, the only way to do that is a C library16:59:32
@nzbr:nzbr.deArson Copperflame So we just abuse runuser for that now 16:59:49
@k900:0upti.meK900Well usually whatever is starting the session is also what's handling auth and such17:02:40
@k900:0upti.meK900Starting a session from an already authenticated session is not a common use case17:03:22
@nzbr:nzbr.deArson CopperflameHot take: "It's handling auth" and "It's written in C" are two things that shouldn't occur in a program at the same time. At least not in 2023. You can pick one of those, but both is dangerous17:04:34
@k900:0upti.meK900Too late now17:05:04
@k900:0upti.meK900I mean, I 100% agree, but PAM is ancient17:05:25
1 Apr 2023
@purewaterisme:matrix.orgpurewaterismeRedacted or Malformed Event23:54:21
2 Apr 2023
@cycyone3:matrix.orgcycyone3 changed their profile picture.03:02:33
@cycyone3:matrix.orgcycyone3 changed their profile picture.04:36:43
@nzbr:nzbr.deArson Copperflame
In reply to @nzbr:nzbr.de
https://github.com/nix-community/NixOS-WSL/issues/238
I added a "Fix" (but I wouldn't bet on it working indefinitely)
08:35:40
@k900:0upti.meK900 You can also fix it by wrapping ~/.vscode-server/$hash/node 08:39:54
@k900:0upti.meK900But that's a pain to automate08:40:01
@nzbr:nzbr.deArson Copperflame Isn't that what the nixos-vscode-server thing does though? 08:42:40
@k900:0upti.meK900Kinda08:43:43
@k900:0upti.meK900It also tries to patchelf it08:43:48
@k900:0upti.meK900Which isn't necessary if you have nix-ld08:43:49
@purewaterisme:matrix.orgpurewaterisme
In reply to @nzbr:nzbr.de
I added a "Fix" (but I wouldn't bet on it working indefinitely)
Oh yeah that was me: I didn't even need to run that command. All I did was downgrade the extension to 0.76.0 in the GUI(which that command should be equivalent to)
08:45:23
@purewaterisme:matrix.orgpurewaterisme
In reply to @nzbr:nzbr.de
I added a "Fix" (but I wouldn't bet on it working indefinitely)
* Oh yeah that was me: I didn't even need to run that command. All I did was downgrade the extension to 0.76.1 in the GUI(which that command should be equivalent to)
08:46:34
@nzbr:nzbr.deArson CopperflameGood to know, I changed the text08:48:10
@purewaterisme:matrix.orgpurewaterisme
In reply to @k900:0upti.me
Which isn't necessary if you have nix-ld
I thought the whole issue was that the environment variables wouldn't be pulled and the server-env script wouldn't run with the removal of that option
08:48:55
@k900:0upti.meK900The server-env script doesn't run because it tries to spawn a relay process first08:49:47
@k900:0upti.meK900And that relay process uses their prebuilt Node08:49:55
@k900:0upti.meK900And that prebuilt Node doesn't run on unpatched NixOS for obvious reasons08:50:07

Show newer messages


Back to Room ListRoom Version: 9