diff --git a/hosts/tablet.nix b/hosts/tablet.nix index 4cb94ff..32de99d 100644 --- a/hosts/tablet.nix +++ b/hosts/tablet.nix @@ -34,6 +34,16 @@ rec { from = 1714; to = from + 50; } ]; + services.logind.extraConfig = '' + HandlePowerKey=suspend + HandlePowerKeyLongPress=poweroff + HandleSuspendKey=suspend-then-hibernate + HandleSuspendKeyLongPress=hibernate + HandleLidSwitch=lock + HandleLidSwitchDocked=ignore + HandleLidSwitchExternalPower=lock + ''; + system.stateVersion = "23.11"; }; }