mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-23 00:34:24 +01:00
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:
parent
bbb0110a03
commit
e60f7000b0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user