system: don't shutdown when power button is short-pressed

This commit is contained in:
Aly Raffauf 2024-03-26 17:24:31 -04:00
parent 4d20a6ea6e
commit b64c84870e

View file

@ -34,6 +34,12 @@
keyboard.qmk.enable = true; keyboard.qmk.enable = true;
}; };
services.logind.extraConfig = ''
# don't shutdown when power button is short-pressed
HandlePowerKey=suspend
HandlePowerKeyLongPress=poweroff
'';
security.polkit.enable = true; security.polkit.enable = true;
# Allow unfree packages # Allow unfree packages