I noticed that my system was very unstable with NixOS 23.11 and I wasn’t really able to find out what it was.
It just randomly got stuck and was very hard to kill.
I reverted back to 23.05 and everything was stable again.
Out of habit it updated my flake on 23.05 and had the same problems again.
The most obvious change was that the kernel got updated to 6.1.65, the same version as in NixOS 23.11.
If someone has some tips on how to debug this problem I would be very glad.
I haven’t seen anything obvious in journalctl or dmesg so far but maybe someone knows better what to look for.
Edit: Looks like the kernel 6.6 doesn’t work with Nvidia ATM.
Trying to see my system is stable with 6.5 but would still prefer to have a working 6.1.
Edit2:
So far it looks like the kernel 6.5 works much better but will have to test a bit longer.
Maybe but I don’t really know.
The system just becomes unresponsive very quickly.
First I thought it might be the usual desktop/graphics problems but happened as well when I didn’t login.
The question is, I’d say, if this is caused by the kernel at all. You could try and set your boot.kernelPackages to the last good version, update the rest, and see the result.
I’ve changed to the kernel 6.5 for the moment and it’s stable since a few hours.
However I hadn’t had the time yet to fully test it with reboots, undocking, etc.
Definitely sounds like a kernel/wireless driver bug. If you can find out what your networking hardware is, you can probably trawl the internet/KML and figure out what the issue is, and if/in which kernel it was fixed. Probably easier to figure out whether to switch to a different kernel from there.
If you want to just try 6.6, try switching to a kernel from unstable. Nvidia have likely fixed that mismatch by now, but the driver version which does so has not been backported to NixOS stable.
I found a mention of this issue by someone else and even Linus on the mailing list but it should be fixed in newer kernels .
For the moment I disable my Wifi card in the bios so at least I have a working system.
I had something similar. I upgraded from 23.05 straight to 24.05 because I plugged in nixos-unstable nixos and nixpkgs-unstable nixos channels. The system kernel updated to 6.1.63 and then to 6.1.64. After that the system started to run jerkily and freeze slightly. I tried the latest kernel 6.6.5, 6.6.6 then 6.6.7. The situation improved a bit, but when shutting down rfkill tried to shut down wpa_supplicant and network manager , even though in my configuration.nix these services are commented out because I use Gnome. It’s about a rather weak device, instead of customizing the video driver, I decided to change the kernel. boot.kernelPackages = pkgs.linuxPackages-rt_latest solved the problem.