about summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-08-01 11:06:59 +0200
committerSoispha <soispha@vhack.eu>2023-08-01 11:17:09 +0200
commit51726eee840179ec6bea07cc979bfb8c5a54d149 (patch)
tree2fc609b7d0648827c7267d68fcfbb5d4f3d11130 /system
parentFix(treewide): Use tlp and thermald for power saving (diff)
downloadnixos-config-51726eee840179ec6bea07cc979bfb8c5a54d149.tar.gz
nixos-config-51726eee840179ec6bea07cc979bfb8c5a54d149.zip
Fix(system/disks/hibernate): Hibernate after 5m when suspend -> hibernate
On `systemctl suspend-than-hibernate` wait 5m in suspend, than hibernate
Diffstat (limited to '')
-rw-r--r--system/disks/hibernate.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/disks/hibernate.nix b/system/disks/hibernate.nix
index e6d989f2..98cc7439 100644
--- a/system/disks/hibernate.nix
+++ b/system/disks/hibernate.nix
@@ -39,4 +39,7 @@
     systemd-hibernate.serviceConfig.Environment = "SYSTEMD_BYPASS_HIBERNATION_MEMORY_CHECK=1";
     systemd-logind.serviceConfig.Environment = "SYSTEMD_BYPASS_HIBERNATION_MEMORY_CHECK=1";
   };
+  sleep.extraConfig = ''
+    HibernateDelaySec=5m
+  '';
 }