summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/settings/hardware/bare-metal.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/settings/hardware/bare-metal.nix b/system/settings/hardware/bare-metal.nix
index a60524c7..ce8e57e2 100644
--- a/system/settings/hardware/bare-metal.nix
+++ b/system/settings/hardware/bare-metal.nix
@@ -14,6 +14,9 @@
     extraConfig = ''
       IdleAction=suspend
       IdleActionSec=1800
+      HandlePowerKey=suspend
+      HandlePowerKeyLongPress=poweroff
+      PowerKeyIgnoreInhibited=yes
     '';
   };
   services.udev.extraRules = ''