Help, NixOS Kde plasma 6 kept crashing and freezing even in tty

If your program crashes at the same time that this error messages shows up in the kernel log with at drivers/gpu/drm/amd/amdpu (you can monitor the kernel logs with dmesg -w, then you can assume that they are related.

The AMD GPU drivers are not very stable, and that’s an euphemism, e.g. in issue #3579 people had crashes (forcing you to reboot) every other day for almost year before reporting the issue, because we are all so used to regressions being fixed in a kernel update. Looks like this one might never get fixed…

You are not the only one having problems like that.