!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

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

Load older messages


SenderMessageTime
14 Apr 2023
@nzbr:nzbr.deArson CopperflameTrue, but it's less likely that they brick both15:06:15
@k900:0upti.meK900Maybe we should have some nixos-enter-esque script in a known location so you can run it from the mariner-cbl container15:07:28
@k900:0upti.meK900And then fix your system from there15:07:34
@nzbr:nzbr.deArson Copperflame I think I put something like that into the DistroLauncher branch. The idea is that you can run nixos rescue to get a shell 15:08:59
15 Apr 2023
@k900:0upti.meK900Ugh17:41:41
@k900:0upti.meK900So my /bin/sh change broke things17:41:54
@k900:0upti.meK900Or not17:50:01
@k900:0upti.meK900I am confuse17:50:03
@k900:0upti.meK900It did17:58:13
@k900:0upti.meK900Fix: https://github.com/nix-community/NixOS-WSL/commit/f3b6f6b04728416c64fc5ef52199fd9b9843c47d17:58:15
@k900:0upti.meK900(pushed again because it's a very non-obvious bug that causes very non-obvious explosions)17:58:27
16 Apr 2023
@ianluo001:matrix.orgian luo joined the room.02:26:46
@errisnotnil:matrix.orgYuddite Pilot changed their profile picture.23:09:22
17 Apr 2023
@nehu:matrix.orgNehu
In reply to @nzbr:nzbr.de

Can you still get a shell? If not, try the following:

wsl -d NixOS -e /bin/sh -c '/nix/var/nix/profiles/system/activate; source /etc/set-environment; bash -l'

From there you can edit the configuration and rebuild with nixos-rebuild boot (switch won't work). Then run wsl -t NixOS and try starting it again

Sorry for the late answer. No, I can't get a shell...
The command you provided silently fails.
If I try to enter "normally", I end up with the following:

wsl -d nixos-testing
Copying /usr/share/applications
Copying /usr/share/icons
rsync: [sender] change_dir "/nix/store/i2cy643r2znpj8bji5f67z3nyb8mwws9-nixos-system-nixos-22.11.3667.87edbd74246/sw/share/icons" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1327) [sender=3.2.6]
Activation script snippet 'copy-launchers' failed (23)
setting up /etc...
setting up /bin...
12:38:51
@k900:0upti.meK900We really need to fix the setup process...12:39:58
@k900:0upti.meK900So this doesn't happen12:40:08
@nzbr:nzbr.deArson CopperflameNot dying when the activation script fails would be a good first step12:40:46
@nzbr:nzbr.deArson CopperflameThe code that currently handles this for syschdemd will be replaced by the rust wrapper anyway12:41:23
@k900:0upti.meK900The easiest way I can think of to unscrew this would probably be to install from the latest installer12:41:28
@k900:0upti.meK900
In reply to@nzbr:nzbr.de
Not dying when the activation script fails would be a good first step
The native systemd wrapper tries to
12:41:36
@nzbr:nzbr.deArson Copperflame
In reply to @nehu:matrix.org

Sorry for the late answer. No, I can't get a shell...
The command you provided silently fails.
If I try to enter "normally", I end up with the following:

wsl -d nixos-testing
Copying /usr/share/applications
Copying /usr/share/icons
rsync: [sender] change_dir "/nix/store/i2cy643r2znpj8bji5f67z3nyb8mwws9-nixos-system-nixos-22.11.3667.87edbd74246/sw/share/icons" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1327) [sender=3.2.6]
Activation script snippet 'copy-launchers' failed (23)
setting up /etc...
setting up /bin...
Can you get a shell with just wsl -d NixOS -e /bin/sh?
12:42:35
@k900:0upti.meK900Or just get the latest installer from here: https://github.com/nix-community/NixOS-WSL/actions/runs/470907988612:43:19
@nehu:matrix.orgNehu
In reply to @nzbr:nzbr.de
Can you get a shell with just wsl -d NixOS -e /bin/sh?
Silently fails :(
12:43:23
@nehu:matrix.orgNehu
In reply to @nzbr:nzbr.de
Can you get a shell with just wsl -d NixOS -e /bin/sh?
* Silently fails (with exit code 1) :(
12:43:52
@nzbr:nzbr.deArson Copperflame Okay, that doesn't sound right at all...
What about wsl -d NixOS --system?
12:44:11
@nehu:matrix.orgNehu
In reply to @nzbr:nzbr.de
Okay, that doesn't sound right at all...
What about wsl -d NixOS --system?
Complains about "--system" not being a valid WSL option and returns exit code 127
12:46:06
@k900:0upti.meK900Which WSL version are you on?12:46:20
@nehu:matrix.orgNehuHmm, how do I check that again? I can tell the windows version is 19043.164512:47:10
@k900:0upti.meK900Oh no12:47:29
@k900:0upti.meK900Why are you on EOL Windows?12:47:46

Show newer messages


Back to Room ListRoom Version: 9