chore: suspend powerKey

This commit is contained in:
Tibo De Peuter 2025-03-26 20:45:36 +01:00
parent 8b9b00f33b
commit ffd6f6e9c6
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -90,11 +90,14 @@
networking.hostName = "Tibo-NixFat"; networking.hostName = "Tibo-NixFat";
services = { services = {
# Handle the laptop lid switch as follows:
logind = { logind = {
# Handle the laptop lid switch as follows:
lidSwitch = "hybrid-sleep"; lidSwitch = "hybrid-sleep";
lidSwitchExternalPower = "lock"; lidSwitchExternalPower = "lock";
lidSwitchDocked = "ignore"; lidSwitchDocked = "ignore";
# Handle the power key
powerKey = "suspend";
}; };
xserver.xkb = { xserver.xkb = {