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 <tazjin@tvl.su>
This commit is contained in:
Vincent Ambo 2024-09-03 16:44:33 +03:00 committed by tazjin
parent 1c898f7ddc
commit 632e74e435

View file

@ -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;