about summary refs log tree commit diff
path: root/modules/workstation/hardware/pixelbook
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-10-29 08:38:19 +0000
committerAlyssa Ross <hi@alyssa.is>2020-11-22 14:15:58 +0000
commit9791e7fb668219d330ee6f9c509b17c2691596b6 (patch)
tree98112b43d365bb41475e07c69690ee03d7fd3492 /modules/workstation/hardware/pixelbook
parentd814d07a5779f3b88c273a6f899a82095396337f (diff)
downloadnixlib-9791e7fb668219d330ee6f9c509b17c2691596b6.tar
nixlib-9791e7fb668219d330ee6f9c509b17c2691596b6.tar.gz
nixlib-9791e7fb668219d330ee6f9c509b17c2691596b6.tar.bz2
nixlib-9791e7fb668219d330ee6f9c509b17c2691596b6.tar.lz
nixlib-9791e7fb668219d330ee6f9c509b17c2691596b6.tar.xz
nixlib-9791e7fb668219d330ee6f9c509b17c2691596b6.tar.zst
nixlib-9791e7fb668219d330ee6f9c509b17c2691596b6.zip
modules/pixelbook: map power button to suspend
This makes much more sense for a tablet-like device.
Diffstat (limited to 'modules/workstation/hardware/pixelbook')
-rw-r--r--modules/workstation/hardware/pixelbook/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/workstation/hardware/pixelbook/default.nix b/modules/workstation/hardware/pixelbook/default.nix
index 926558bd91b0..6a247fcb9460 100644
--- a/modules/workstation/hardware/pixelbook/default.nix
+++ b/modules/workstation/hardware/pixelbook/default.nix
@@ -7,4 +7,8 @@
     # Remap Google Assistant to left super.
     /run/current-system/sw/bin/setkeycodes e058 125
   '';
+
+  services.logind.extraConfig = ''
+    HandlePowerKey=suspend
+  '';
 }