The most recent nixos-rebuild on my laptop had me confused because all of a sudden the power key would shut it down, even though prior to the rebuild it would be ignored as per my systemd.logind.settings.Login.HandlePowerKey = "ignore" setting
Logs showed SIGRTMIN+4 was sent, quick search turned up CONFIG_ACPI_TINY_POWER_BUTTON_SIGNAL , and hey it’s set to 38 AKA SIGRTMIN+4 in my kernel config. I unloaded the tiny_power_button module, blacklisted it, everything is normal again
Seems like this module should be opt-in, no? Or at least automatically disabled if systemd.logind is enabled. Maybe we new config option for it that has some warnings if systemd.logind is also enabled?
Spoke too soon. Apparently tiny_power_button is what makes the power button work to begin with. Could it be that something changed about how systemd handles SIGRTMIN+4? Should have posted this as a help thread
Ok, downgraded to linux 6.12.113 and things work as normal. In 6.18.57 the power key always powers off the system. 7.2.11 also works as normal. systemd is 260.5. Hopefully this is helpful to someone.