I’ve just installed NixOS 22.05 from scratch on a server, and it keeps suspending (and crashing badly when resuming from suspend):
$ journalctl --boot=-1 --unit=systemd-suspend.service
Jun 03 23:04:04 lib systemd[1]: Starting System Suspend...
Jun 03 23:04:04 lib systemd-sleep[1632]: Entering sleep state 'suspend'...
It’s a server, so it should never suspend. I’ve disabled automatic suspend in the GNOME power settings, and the only suspension-related configuration I have is services.logind.extraConfig = "HandlePowerKey=suspend";. What else should I look for before reaching for the hack of just explicitly disabling the service? Also, is there some way to tell what activated the service?
Thank you very much! I’ll give that a try. But why is that issue marked as resolved? Also, why would this only affect one of my several machines with NixOS 22.05?