!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

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

Load older messages


SenderMessageTime
25 Oct 2025
@evanjsx:matrix.orgevanjs

That being said...

My skew is only ~13s on the WSL instance

And based on the sshd config's commented out defaults on the other device, that period should be 2m

So perhaps it is unrelated, after all 🤔

21:40:58
26 Oct 2025
@evanjsx:matrix.orgevanjsMight have figured it out.... I am not sure why But the MTU on the NixOS WSL side was set to 1200...15:35:30
29 Oct 2025
@chezygun:matrix.orgchezygun joined the room.18:52:52
30 Oct 2025
@fabdb:mokasin.defabdb

I have trouble updating my system. Can somebody tell me, what is going on? Couldn't find an issue on github for that.

$ cat $(nix-instantiate --find-file nixpkgs)/.git-revision
e99366c665bdd53b7b500ccdc5226675cfc51f45
sudo nixos-rebuild switch --upgrade
unpacking 2 channels...
unpacking 2 channels...
building the system configuration...
evaluation warning: The option `hardware.opengl.enable' defined in `/nix/store/cynw1547shxm7c3j7qi5jk6bgmvjwz3x-nixos-wsl/nixos-wsl/modules/wsl-distro.nix' has been renamed
to `hardware.graphics.enable'.
error:
       … while calling the 'head' builtin
         at /nix/store/jjmyd2jxv1s7awbjrxhysvr3z2filg7n-nixos/nixos/lib/attrsets.nix:1696:13:
         1695|           if length values == 1 || pred here (elemAt values 1) (head values) then
         1696|             head values
             |             ^
         1697|           else

       … while evaluating the attribute 'value'
         at /nix/store/jjmyd2jxv1s7awbjrxhysvr3z2filg7n-nixos/nixos/lib/modules.nix:1118:7:
         1117|     // {
         1118|       value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |       ^
         1119|       inherit (res.defsFinal') highestPrio;

       … while evaluating the option `system.build.toplevel':

       … while evaluating definitions from `/nix/store/jjmyd2jxv1s7awbjrxhysvr3z2filg7n-nixos/nixos/nixos/modules/system/activation/top-level.nix':

       … while evaluating the option `system.systemBuilderArgs':

       … while evaluating definitions from `/nix/store/jjmyd2jxv1s7awbjrxhysvr3z2filg7n-nixos/nixos/nixos/modules/system/activation/activatable-system.nix':

       … while evaluating the option `system.activationScripts.populateBin.text':

       … while evaluating definitions from `/nix/store/cynw1547shxm7c3j7qi5jk6bgmvjwz3x-nixos-wsl/nixos-wsl/modules/wsl-distro.nix':

       … while evaluating the option `wsl.extraBin."[definition 2-entry 1]".src':

       … while evaluating definitions from `/nix/store/cynw1547shxm7c3j7qi5jk6bgmvjwz3x-nixos-wsl/nixos-wsl/modules/recovery.nix':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: attribute 'nixos-enter' missing
       at /nix/store/cynw1547shxm7c3j7qi5jk6bgmvjwz3x-nixos-wsl/nixos-wsl/modules/recovery.nix:3:18:
            2| let
            3|   nixos-enter' = config.system.build.nixos-enter.overrideAttrs (_: {
             |                  ^
            4|     runtimeShell = "/bin/bash";
Command 'nix-build '<nixpkgs/nixos>' --attr config.system.build.toplevel --no-out-link' returned non-zero exit status 1.
12:59:25
@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

There are no newer messages yet.


Back to Room ListRoom Version: 9