Inhibit logind from handling power button inputs
This prevents the computer from immediately shutting down when the power button is pressed.
This commit is contained in:
parent
a41f4be8fb
commit
d845c4f144
1 changed files with 8 additions and 0 deletions
|
|
@ -28,6 +28,14 @@ in
|
||||||
networking.wireless.enable = false;
|
networking.wireless.enable = false;
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
# Power button settings
|
||||||
|
services.logind = {
|
||||||
|
extraConfig = ''
|
||||||
|
HandlePowerKey=ignore
|
||||||
|
HandlePowerKeyLongPress=poweroff
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "America/New_York";
|
time.timeZone = "America/New_York";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue