From 632e74e4357f371446678d177fe578fd3c193836 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 3 Sep 2024 16:44:33 +0300 Subject: fix(tazjin/khamovnik): try to force suspend on all lid close events logind doesn't like reliably suspending, and apparently it has a bunch of bugs around dock detection (I don't even use docks), but maybe this helps Change-Id: Ia822799cde838d8d41a67f9d39d59d1fa0306116 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12429 Tested-by: BuildkiteCI Reviewed-by: tazjin --- users/tazjin/nixos/khamovnik/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/users/tazjin/nixos/khamovnik/default.nix b/users/tazjin/nixos/khamovnik/default.nix index 9f92bcbc7dc5..27d7536bb1de 100644 --- a/users/tazjin/nixos/khamovnik/default.nix +++ b/users/tazjin/nixos/khamovnik/default.nix @@ -117,6 +117,13 @@ in # Try to work around Intel CPU throttling bugs services.throttled.enable = true; + # Try to get suspend to work more reliably + services.logind = { + lidSwitch = "suspend"; + lidSwitchDocked = "suspend"; + lidSwitchExternalPower = "suspend"; + }; + virtualisation.docker.enable = true; hardware.bluetooth.enable = true; -- cgit 1.4.1