meta: Don't shutdown when power button is pressed

Since I always shut down the computer through the terminal, the power
button serves no use while the computer is on.
This commit is contained in:
Donovan Glover 2023-06-18 15:31:24 -04:00
parent bbb0110a03
commit e60f7000b0
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -191,6 +191,10 @@ let VARIABLES = import ./variables.nix; in {
systemd.extraConfig = "DefaultTimeoutStopSec=10s"; # Prevent hanging on shutdown
services.logind.lidSwitch = "ignore"; # Don't suspend on lid close
# Don't shutdown when power button is short-pressed
services.logind.extraConfig = "HandlePowerKey=ignore";
time.timeZone = "${VARIABLES.timezone}"; # Timezone
# user