!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

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

Load older messages


SenderMessageTime
30 Apr 2024
@sandro:supersandro.deSandro 🐧above was a wrong assumption of me. When restarting wsl completely on 0b90c1d982d443358b3f7b3a303405449a2bfe54 things work, after that commit things are broken....12:18:41
@nzbr:nzbr.denzbr (they/it)
In reply to @sandro:supersandro.de
K900: nzbr (they/it) do we spawn the systemd user session here https://github.com/nix-community/NixOS-WSL/blob/main/utils/src/shell_wrapper.rs#L22C41-L22C53 and then it get's killed after a short while?
The wrapper only sources /etc/set-environment for now, so it shouldn't affect any of that
12:20:57
@sandro:supersandro.deSandro 🐧
In reply to @k900:0upti.me
I think there might be PAM fuckery
or that 😅
12:32:06
@sandro:supersandro.deSandro 🐧All a bit magic to me and I am happy that I got this far already 😂12:32:20
@sandro:supersandro.deSandro 🐧dbus issues are always THE worst12:32:28
@sandro:supersandro.deSandro 🐧I tried disabling envfs and do some poor mans bisecting and I am pretty sure the issue the bad commits are 03b52c7ff0ae73d5044cd00212eb5b776819f5f0 and 4fb773cffed9bf1efdabcc01b25637eaeb4e8e9c, didn't test any inbetween12:33:07
@sandro:supersandro.deSandro 🐧
Apr 30 14:40:30 francium systemd[407]: Listening on D-Bus User Message Bus Socket.
Apr 30 14:40:30 francium systemd[407]: Reached target Sockets.
Apr 30 14:40:30 francium systemd[407]: Reached target Basic System.
Apr 30 14:40:30 francium systemd[1]: Started User Manager for UID 1000.
Apr 30 14:40:30 francium systemd[407]: Started Vaccum atuin sqlite database.
Apr 30 14:40:30 francium systemd[1]: Started Session 1 of User sandro.
Apr 30 14:40:30 francium systemd[407]: Starting Run user-specific NixOS activation...
Apr 30 14:40:30 francium systemd[407]: Starting SSH Agent...
Apr 30 14:40:30 francium login[402]: pam_unix(login:session): session closed for user sandro
Apr 30 14:40:30 francium systemd-logind[355]: Session 1 logged out. Waiting for processes to exit.
Apr 30 14:40:30 francium systemd[1]: session-1.scope: Deactivated successfully.
Apr 30 14:40:30 francium systemd-logind[355]: Removed session 1.
Apr 30 14:40:30 francium systemd[407]: Finished Run user-specific NixOS activation.
Apr 30 14:40:30 francium systemd[407]: Started SSH Agent.
Apr 30 14:40:30 francium systemd[407]: Reached target Main User Target.
Apr 30 14:40:30 francium systemd[407]: Startup finished in 184ms.
Apr 30 14:40:40 francium systemd[1]: Stopping User Manager for UID 1000...
12:42:08
@sandro:supersandro.deSandro 🐧yeah, I think pam is closing the session, see lin 912:42:18
@sandro:supersandro.deSandro 🐧 * yeah, I think pam is closing the session, see line 912:42:20
@xondtx:matrix.orgondt joined the room.22:20:03
1 May 2024
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.15:06:28
@olafklingt:matrix.org@olafklingt:matrix.org left the room.15:31:09
@daschw:matrix.org@daschw:matrix.org joined the room.18:53:23
2 May 2024
@ottidmes:matrix.orgottidmes Any idea why I am getting the nixos-rebuild manpage everytime I run nixos-rebuild --flake .#machine? 08:47:35
@ottidmes:matrix.orgottidmesGoing to try recovery and then pin WSL to an official release rather than just main/master08:53:26
@nzbr:nzbr.denzbr (they/it)I've never seen that happen before (neither on bare-metal nor on WSL). Which nixpkgs version are you using?08:59:23
@ottidmes:matrix.orgottidmes23.11 5bf1cadb72ab4e77cb0b700dab76bcdaf88f706b09:02:46
@ottidmes:matrix.orgottidmesTried the recovery, but it doesn't mount /mnt/c where my config is located... Going to try just calling an older version of nixos-rebuild, see if that helps09:03:56
@simonyde:matrix.orgSimon Yde
In reply to @ottidmes:matrix.org
Any idea why I am getting the nixos-rebuild manpage everytime I run nixos-rebuild --flake .#machine?
You aren't specifying a subcommand like boot or switch
09:04:28
@ottidmes:matrix.orgottidmesDamn, that's it, feel so stupid now09:06:12
@ottidmes:matrix.orgottidmesThanks for the help! At least now I know I should work on my system recovery situation, as in my current setup I would have a hard time then. And I should update my script to default or error on missing a subcommand09:08:53
3 May 2024
@whovian9369:matrix.orgWhovian9369

Hey y'all, I'm beginning a switch from using /etc/nixos/configuration.nix and $HOME/.config/home-manager/{flake,home}.nix to having $HOME/.config/nixos/{configuration,flake,home}.nix

Happen to have any tips or warnings for going from a "Path-based" system config to a Flake-based one?

09:48:36
@whovian9369:matrix.orgWhovian9369 *

Hey y'all, I'm beginning a switch from using /etc/nixos/configuration.nix and $HOME/.config/home-manager/{flake,home}.nix to having $HOME/.config/nixos/{configuration,flake,home}.nix

Happen to have any tips or warnings for going from a "Path/Channel-based" system config to a Flake-based one?

09:49:04
@whovian9369:matrix.orgWhovian9369 (Specific inputs entries, commits to pin against, etc) 09:49:19
@k900:0upti.meK900Just do the obvious thing09:57:11
@k900:0upti.meK900It'll be fine09:57:12
@whovian9369:matrix.orgWhovian9369Thanks for the unearned confidence 😅10:07:37
@whovian9369:matrix.orgWhovian9369 ("Unearned" by me, I mean. :P) 10:09:15
@whovian9369:matrix.orgWhovian9369I found https://nix-community.github.io/NixOS-WSL/howto.html which seems to answer my question!10:33:20
@gleydar:beeper.comgleydarHeyho, I have a probably stupid question because im pretty new to nix and how to package programs for it 😄 I want to package a tool that enables vpn-connectivity for my stupid corporate vpn which refuses to work even with all the microsoft improvements to connectivity. This tool needs some binaries in Windows as well. Would it be a good idea to copy those tools to the windows path in the installPhase? 11:33:18

Show newer messages


Back to Room ListRoom Version: 9