!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

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

Load older messages


SenderMessageTime
14 Oct 2025
@k900:0upti.meK900 Well it should 14:50:00
@k900:0upti.meK900The idea is that you sync to the host clock instead of the NTP14:50:25
@nzbr:nzbr.denzbr (they/it)This is what I mean https://github.com/nix-community/NixOS-WSL/actions/runs/18490648992/job/52683452060?pr=821#step:5:2514:51:01
@k900:0upti.meK900Oops14:52:14
@k900:0upti.meK900Forgot to remove the override for timesyncd14:52:34
@k900:0upti.meK900Should be good now14:52:34
@nzbr:nzbr.denzbr (they/it)👍️ I set it to merge when the pipeline passes14:54:01
15 Oct 2025
@emma:rory.gayEmma [it/its] question: how come GUI apps dont show up in the windows start menu? i already found and enabled the wsl.startMenuLaunchers option but that didnt seem to have an effect 03:35:49
16 Oct 2025
@tumypmyp:matrix.orgTimur Gainullin joined the room.14:02:45
17 Oct 2025
@tumypmyp:matrix.orgTimur Gainullin changed their profile picture.09:53:43
18 Oct 2025
@beni:matrix.wirebug.chBeni HB9HNT joined the room.18:01:07
20 Oct 2025
@kolargol00:matrix.org@kolargol00:matrix.org left the room.11:39:31
23 Oct 2025
@mrargoz:matrix.org@mrargoz:matrix.org joined the room.21:01:46
24 Oct 2025
@mrargoz:matrix.org@mrargoz:matrix.org left the room.04:40:00
25 Oct 2025
@ptramo:matrix.orgPierre Carrierdo we have any control over the compositor used in wslg?17:54:02
@k900:0upti.meK900No18:00:05
@evanjsx:matrix.orgevanjs

Are there any quick things to check if time syncing is wacky on my instance?

Chrony keeps whining that something else might be changing the time

And it's just enough that I can't use SSH to connect to other hosts from the WSL instance (AFAICT)

Just rebuilt using latest changes from the repo today

21:17:55
@k900:0upti.meK900 I don't think the time should affect SSH 21:18:48
@evanjsx:matrix.orgevanjs

Neither did I
Then I started seeing this in the journal on the device I was trying to connect to

<DATE> <HOSTNAME> sshd[<PID>]: drop connection #0 from [<REMOTE_IP>]:<REMOTE_PORT> on [<HOST_IP>]:22 penalty: exceeded LoginGraceTime
21:39:39
@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

Show newer messages


Back to Room ListRoom Version: 9