!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

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

Load older messages


SenderMessageTime
30 Oct 2025
@nzbr:nzbr.denzbr (they/it) Does just nixos-rebuild switch work? 13:00:49
@nzbr:nzbr.denzbr (they/it) * Does just sudo nixos-rebuild switch work? 13:01:23
@fabdb:mokasin.defabdb

Ah, no. Let me fix that and get back to you:

       error:
       Failed assertions:
       - The option definition `wsl.nativeSystemd' in `/etc/nixos/configuration.nix' no longer has any effect; please remove it.
       Native systemd is now always enabled as support for syschdemd has been removed
Command 'nix-build '<nixpkgs/nixos>' --attr config.system.build.toplevel --no-out-link' returned non-zero exit status 1.

13:01:40
@s8766054:tu-dresden.deSimon.Sieben@mailbox.tu-dresden.deRedacted or Malformed Event13:02:14
@fabdb:mokasin.defabdbThat was it. Now both work again. Thanks! The error put me off.13:04:47
@wyndon:envs.netwyndon joined the room.19:35:16
@wyndon:envs.netwyndon i'm getting this upon trying to update my config

restarting systemd...
Error: Failed to reset failed units

Caused by:
    Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

[process exited with code 1 (0x00000001)]
You can now close this terminal with Ctrl+D, or press Enter to restart.

it completely borks my system as i can't even get into a recovery shell (by using wsl -d NixOS --system --user root -- /mnt/wslg/distro/bin/nixos-wsl-recovery)

/mnt/wslg/distro/bin/nixos-wsl-recovery: /mnt/wslg/distro//nix/store/dih2wyarm9lyl006gnv7d869npkbgp6h-nixos-enter/bin/nixos-enter: /nix/store/ciarnmsx8lvsrmdbjddpmx0pqjrm8imb-bash-5.3p3/bin/bash: bad interpreter: No such file or directory
/mnt/wslg/distro/bin/nixos-wsl-recovery: line 9: /mnt/wslg/distro//nix/store/dih2wyarm9lyl006gnv7d869npkbgp6h-nixos-enter/bin/nixos-enter: Success
19:44:23
@wyndon:envs.netwyndon i'm getting this upon trying to update my config

restarting systemd...
Error: Failed to reset failed units

Caused by:
    Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

[process exited with code 1 (0x00000001)]
You can now close this terminal with Ctrl+D, or press Enter to restart.

if i do a switch, it just boots into the previous generation as if nothing has been applied. if i do a boot, it completely borks my system as i can't even get into a recovery shell (by using wsl -d NixOS --system --user root -- /mnt/wslg/distro/bin/nixos-wsl-recovery)

/mnt/wslg/distro/bin/nixos-wsl-recovery: /mnt/wslg/distro//nix/store/dih2wyarm9lyl006gnv7d869npkbgp6h-nixos-enter/bin/nixos-enter: /nix/store/ciarnmsx8lvsrmdbjddpmx0pqjrm8imb-bash-5.3p3/bin/bash: bad interpreter: No such file or directory
/mnt/wslg/distro/bin/nixos-wsl-recovery: line 9: /mnt/wslg/distro//nix/store/dih2wyarm9lyl006gnv7d869npkbgp6h-nixos-enter/bin/nixos-enter: Success
19:45:11
@wyndon:envs.netwyndonactually i even get the same problem by updating the default config nixos-wsl provides. i change the channels to the unstable ones (unstable nixos and main branch nixos-wsl) and upon switching i get the same issue, installation borked20:04:15
31 Oct 2025
@ipsavitsky234:matrix.org@ipsavitsky234:matrix.org left the room.00:36:05
@dguibert:beeper.com@dguibert:beeper.com left the room.16:50:32
1 Nov 2025
@ojqo92zc:matrix.orgojqo92zc joined the room.16:17:44
@ojqo92zc:matrix.orgojqo92zcdoes this work well?16:18:09
@ojqo92zc:matrix.orgojqo92zcdoes hyprland work with this?16:18:17
@k900:0upti.meK900It works16:36:43
@k900:0upti.meK900Hyprland will not work16:36:46
@k900:0upti.meK900WSL can't manage your Windows windows16:36:52
@emma:rory.gayEmma [it/its]does it not? i thought it was fine if you enabled opengl support?16:41:50
@k900:0upti.meK900Well it can maybe run as a nested session16:42:01
@k900:0upti.meK900But it's not exactly practical16:42:04
@emma:rory.gayEmma [it/its]i should note that i didnt try because i dont have any windows installs that have accelerated 2D/3D graphics at all16:42:21
@emma:rory.gayEmma [it/its]ie. running hyprland itself under linux there isnt even a thing due to no acceleration16:42:52
@k900:0upti.meK900Technically WSL should always have OpenGL, possibly over WARP16:44:01
@emma:rory.gayEmma [it/its]WARP?16:46:50
@k900:0upti.meK900https://learn.microsoft.com/en-us/windows/win32/direct3darticles/directx-warp16:48:25
@lesstech:matrix.orglesstech joined the room.19:27:08
7 Nov 2025
@atra1n:matrix.org@atra1n:matrix.org removed their profile picture.16:36:25
@atra1n:matrix.org@atra1n:matrix.org removed their display name Train.16:36:48
@atra1n:matrix.org@atra1n:matrix.org left the room.16:37:33

There are no newer messages yet.


Back to Room ListRoom Version: 9