mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 10:33:55 -05:00
system: don't shutdown when power button is short-pressed
This commit is contained in:
parent
4d20a6ea6e
commit
b64c84870e
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue