summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorChristian <[email protected]>2026-05-30 11:29:21 -0500
committerChristian <[email protected]>2026-05-30 11:29:21 -0500
commit4669d60345bb78f7aaec433796e437c38dcb09da (patch)
treee21754418f34a45be3b854d9996d7c3f9cb3d100 /hosts
parentb843b40c75393ebb14b150fdd5b341c4108cfec8 (diff)
Ignore power key events in logind to prevent spurious shutdown on hibernate resume
Diffstat (limited to 'hosts')
-rw-r--r--hosts/laptop/configuration.nix5
1 files changed, 5 insertions, 0 deletions
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 = {