!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

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

Load older messages


SenderMessageTime
10 Aug 2024
@k900:0upti.meK900I mean, you'd have to troubleshoot it yourself15:37:25
@k900:0upti.meK900But if you find fixes, please submit them15:37:31
@nzbr:nzbr.denzbr (they/it)I'd love to support it officially, but we don't have access to aarch64 github runners and the only windows on arm device I have myself is a VM on an M1 Mac, which can't do nested virtualisation at all, so no Hyper-V in the VM15:59:50
@wreckedavent:matrix.orgRiley Cat i have a current gen surface laptop but i'm afraid i wouldn't even begin to know where to look about proc/self throwing up like that 17:55:43
@k900:0upti.meK900https://github.com/microsoft/WSL/releases/tag/2.3.1718:49:57
@k900:0upti.meK900Great18:49:57
11 Aug 2024
@gleydar:beeper.comgleydarHuh, there goes the cgroupsV2 13:43:50
13 Aug 2024
@gleydar:beeper.comgleydar

I was wondering, how do the specialisations work with nixos-wsl exactly? 😄

I created a specialisation to set a proxy server. Switching to the specialisation works like expected via sudo /run/current-system/specialisations/<name>/bin/switch-to-configuration test, and the proxy is set e.g. in the nix-daemon override file.

However, I sadly have some issues switching back to my base config... I tried using sudo /run/current-system/bin/switch-to-configuration test however, in that case the proxy server is still set in the nix-daemon override...

11:04:33
@gleydar:beeper.comgleydar *

I was wondering, how do the specialisations work with nixos-wsl exactly? 😄

I created a specialisation to set a proxy server. Switching to the specialisation works like expected via sudo /run/current-system/specialisations/<name>/bin/switch-to-configuration test, and the proxy is set e.g. in the nix-daemon override file.

However, I sadly have some issues switching back to my base config... I tried using sudo /run/current-system/bin/switch-to-configuration test however, in that case the proxy server is still set in the nix-daemon override...

11:04:42
@gleydar:beeper.comgleydar *

I was wondering, how do the specialisations work with nixos-wsl exactly? 😄

I created a specialisation to set a proxy server. Switching to the specialisation works like expected via sudo /run/current-system/specialisations/<name>/bin/switch-to-configuration test, and the proxy is set e.g. in the nix-daemon override file.

However, I sadly have some issues switching back to my base config... I tried using sudo /run/current-system/bin/switch-to-configuration test however, in that case the proxy server is still set in the nix-daemon override... Only when I do a wsl --shutdown can I switch back to my base config.

Could anyone point me to the right command to use for switching from specialisation to base?

11:05:33
@nzbr:nzbr.denzbr (they/it)We don't do anything to handle specialisations specifically. You can probably do it the same way as on bare-metal NixOS. I haven't used the feature much though, so I can't say how that would look exactly14:37:39
15 Aug 2024
@ajhalili2006:envs.net~ajhalili2006 [tildeverse / backup of @ajhalili2006:andreijiroh.dev] changed their display name from ~ajhalili2006 [ recaptime.eu.org / sr.ht / tildeverse ] to ~ajhalili2006 [ recaptime.dev / sr.ht / tildeverse ].17:25:51
16 Aug 2024
@nebucatnetzer13:matrix.orgnebucatnetzer13 set a profile picture.11:06:00
@gleydar:beeper.comgleydar
In reply to @nzbr:nzbr.de
We don't do anything to handle specialisations specifically. You can probably do it the same way as on bare-metal NixOS. I haven't used the feature much though, so I can't say how that would look exactly
Sadly, this seems a bit broken... It is mentioned in the wiki that some things only reset on boot. Even though adding variables to the service works (in my case adding the proxy), apparently removing variables isn't supported when using test...
11:26:05
@aurorasystem:matrix.orgAurora Ennie Seidr (she / her) joined the room.14:55:12
@aurorasystem:matrix.orgAurora Ennie Seidr (she / her)Yay! 14:55:22
@aurorasystem:matrix.orgAurora Ennie Seidr (she / her)It worked14:55:29
@k900:0upti.meK900But yeah, basically, you can set up an SSH server on your Windows14:55:49
@k900:0upti.meK900 Then run wsl inside that 14:55:53
@k900:0upti.meK900And get dropped into a WSL shell14:55:59
@aurorasystem:matrix.orgAurora Ennie Seidr (she / her)I'm so sorry. I literally hate used windows only enough for work and limited professional troubleshooting. All of my stuff went the cloud vm route Kudos for them and not mandating "Windows terminal server" any more I guess? 14:57:21
@k900:0upti.meK900Windows is honestly a lot better now14:57:37
@aurorasystem:matrix.orgAurora Ennie Seidr (she / her)
In reply to @k900:0upti.me
Windows is honestly a lot better now

Yeah I thought people were on metaphorical acid when they told me about all the good Microsoft did.

I remember when the documents got leaked from their engineering team where they wanted to totally kill Linux

14:58:50
@aurorasystem:matrix.orgAurora Ennie Seidr (she / her)
In reply to @k900:0upti.me
Windows is honestly a lot better now
Yeah I noticed actually
14:59:04
@aurorasystem:matrix.orgAurora Ennie Seidr (she / her)Okay so install the openssh server via the link you provided. Start the WSL 2 instance via wsl -d NixOs and then it drops me into the system with full access from there? My only issue now is getting connected to this openssh port from my zerotier network? Since it's going to be powershell I have no idea if they have it for that 15:02:22
@aurorasystem:matrix.orgAurora Ennie Seidr (she / her)And thus the unforeseen issue creeps in15:02:48
@k900:0upti.meK900Yes15:02:55
@k900:0upti.meK900I don't think ZeroTier would care?15:03:03
@k900:0upti.meK900It's just a VPN?15:03:07
@k900:0upti.meK900So you should be able to install it on the Windows side15:03:15

Show newer messages


Back to Room ListRoom Version: 9