diff --git a/nixos/hosts/Tibo-NixFat/default.nix b/nixos/hosts/Tibo-NixFat/default.nix index 6f0e53c..44554f0 100644 --- a/nixos/hosts/Tibo-NixFat/default.nix +++ b/nixos/hosts/Tibo-NixFat/default.nix @@ -90,11 +90,14 @@ networking.hostName = "Tibo-NixFat"; services = { - # Handle the laptop lid switch as follows: logind = { + # Handle the laptop lid switch as follows: lidSwitch = "hybrid-sleep"; lidSwitchExternalPower = "lock"; lidSwitchDocked = "ignore"; + + # Handle the power key + powerKey = "suspend"; }; xserver.xkb = {