From 4669d60345bb78f7aaec433796e437c38dcb09da Mon Sep 17 00:00:00 2001 From: Christian Date: Sat, 30 May 2026 11:29:21 -0500 Subject: Ignore power key events in logind to prevent spurious shutdown on hibernate resume --- hosts/laptop/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hosts/laptop/configuration.nix') diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index a2030fe..c9978b7 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -45,6 +45,11 @@ hibernate = "systemctl hibernate"; }; + services.logind = { + powerKey = "ignore"; + powerKeyLongPress = "ignore"; + }; + services.keyd = { enable = true; keyboards.default = { -- cgit v1.2.3