don't shutdown device when power button is tapped
notably, this will allow sxmo to intercept the keypress
This commit is contained in:
parent
abfd516025
commit
7dadea94da
|
@ -28,6 +28,11 @@
|
|||
# powertop will default to putting USB devices -- including HID -- to sleep after TWO SECONDS
|
||||
powerManagement.powertop.enable = false;
|
||||
|
||||
services.logind.extraConfig = ''
|
||||
# don’t shutdown when power button is short-pressed
|
||||
HandlePowerKey=ignore
|
||||
'';
|
||||
|
||||
# services.snapper.configs = {
|
||||
# root = {
|
||||
# subvolume = "/";
|
||||
|
|
Loading…
Reference in New Issue
Block a user