From ffd6f6e9c607010e83ea2a7872a8ef107a3f6a89 Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Wed, 26 Mar 2025 20:45:36 +0100 Subject: [PATCH] chore: suspend powerKey --- nixos/hosts/Tibo-NixFat/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 = {