diff options
author | Vincent Ambo <tazjin@tvl.su> | 2024-09-03T13·44+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2024-09-03T22·26+0000 |
commit | 632e74e4357f371446678d177fe578fd3c193836 (patch) | |
tree | 4435544eb740046efe3e27825dfff3838998e633 | |
parent | 1c898f7ddc5b3ad223d73972465c9fee206c9815 (diff) |
fix(tazjin/khamovnik): try to force suspend on all lid close events r/8648
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>
-rw-r--r-- | users/tazjin/nixos/khamovnik/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
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; |