about summary refs log tree commit diff
path: root/users/tazjin/nixos/khamovnik
diff options
context:
space:
mode:
Diffstat (limited to 'users/tazjin/nixos/khamovnik')
-rw-r--r--users/tazjin/nixos/khamovnik/default.nix7
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;