!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

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

Load older messages


SenderMessageTime
3 May 2024
@k900:0upti.meK900Random thought19:01:32
@k900:0upti.meK900We currently don't create a /run/booted-system19:01:38
@k900:0upti.meK900Should we?19:01:46
@k900:0upti.meK900Do we ever need one?19:01:49
@k900:0upti.meK900If yes, when?19:01:51
@whovian9369:matrix.orgWhovian9369
In reply to @whovian9369:matrix.org
I found https://nix-community.github.io/NixOS-WSL/howto.html which seems to answer my question!

Hm, it looks like I'm having trouble figuring out how to properly set up the flake that I want 😅

Is /etc/nixos/nixos-wsl required to have locally on disk for use with a Flake-based config?

22:33:49
@whovian9369:matrix.orgWhovian9369
In reply to @whovian9369:matrix.org
I found https://nix-community.github.io/NixOS-WSL/howto.html which seems to answer my question!
*

Hm, it looks like I'm having trouble figuring out how to properly set up the flake that I want 😅

Is /etc/nixos/nixos-wsl/ required to have locally on disk for use with a Flake-based config?

22:41:15
@whovian9369:matrix.orgWhovian9369 Okay so that import seems to not be needed since I'm using outputs.nixosConfigurations.nixos-wsl.modules = [ nixos-wsl.nixosModules.wsl ] 22:54:59
@whovian9369:matrix.orgWhovian9369 * Okay so that imports = [ nixos-wsl/modules ] in my configuration.nix seems to not be needed since I'm using outputs.nixosConfigurations.nixos-wsl.modules = [ nixos-wsl.nixosModules.wsl ] in the flake 22:55:38
@whovian9369:matrix.orgWhovian9369 * Okay so that imports = [ nixos-wsl/modules ] in my configuration.nix seems to not be needed since I'm using outputs.nixosConfigurations.nixos-wsl.modules = [ nixos-wsl.nixosModules.wsl ] in the flake.
Edit: Turns out that I didn't need it anymore, period -- Oops, that's been sitting and taking space for a bit now, haha.
23:11:33
4 May 2024
@sandro:supersandro.deSandro 🐧
In reply to @k900:0upti.me
Should we?
yes
17:07:13
@sandro:supersandro.deSandro 🐧
In reply to @k900:0upti.me
Do we ever need one?
yes
17:07:19
@sandro:supersandro.deSandro 🐧
In reply to @k900:0upti.me
If yes, when?
eg diffing booted vs. running system
17:07:28
@sandro:supersandro.deSandro 🐧https://github.com/NixOS/nixpkgs/commit/7b8511b5e551f2b1f4a63b32ff2122ded7d9fdbc17:07:53
@sandro:supersandro.deSandro 🐧PR was declined17:07:55
@sandro:supersandro.deSandro 🐧
In reply to @k900:0upti.me
I think there might be PAM fuckery
So what are we doing about that? revert the wrapper?
17:08:15
@k900:0upti.meK900Enable lingering by default somehow maybe?17:26:51
@ss:someonex.netSomeoneSerge (back on matrix) changed their display name from SomeoneSerge (is taking time off and doesn't want to hear about it) to SomeoneSerge (Way down Hadestown).21:03:45
@sandro:supersandro.deSandro 🐧would that prevent windows from shutting down WSL if it is inactive?23:06:28
5 May 2024
@k900:0upti.meK900Shouldn't04:58:52
@nzbr:nzbr.denzbr (they/it)At least for me, there's not user systemd on ubuntu right now either. I know that it was broken when WSL systemd support was released, but I'm pretty sure Microsoft had fixed that at some point, so maybe they broke it again with some recent WSL update?08:22:58
@nzbr:nzbr.denzbr (they/it)The shell wrapper broke that the default shell gets started as a login shell. I already have a fix for that, just need to make a PR08:23:43
@nzbr:nzbr.denzbr (they/it)
In reply to@nzbr:nzbr.de
The shell wrapper broke that the default shell gets started as a login shell. I already have a fix for that, just need to make a PR
https://github.com/nix-community/NixOS-WSL/pull/464
08:32:29
@marie:marie.cologne@marie:marie.colognemy logind somehow doesn't think i'm logged in, so my ssh agent user unit doesn't start. any ideas what could cause this?10:42:24
@k900:0upti.meK900
In reply to @nzbr:nzbr.de
https://github.com/nix-community/NixOS-WSL/pull/464
This possibly
10:45:42
@marie:marie.cologne@marie:marie.colognecause or fix? it still doesn't work for me with that branch11:21:35
@nzbr:nzbr.denzbr (they/it)it doesn't seem to fix user systemd, but that seems to be broken on Ubuntu as well11:23:00
@man2dev:fedora.im@man2dev:fedora.im left the room.15:45:45
6 May 2024
@gleydar:beeper.comGleydarWeird, cause I have the emacs-server running via home-manger as a user-systemd service flawlessly11:19:34
@gleydar:beeper.comGleydar(in ubuntu)11:19:52

Show newer messages


Back to Room ListRoom Version: 9