From ca7c336ff99fb2bca6ca7f7e61fabd3361bf269b Mon Sep 17 00:00:00 2001 From: k Date: Fri, 10 Jan 2025 18:14:48 -0500 Subject: [PATCH] Change sleep settings --- hosts/laptop/configuration.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 58a258f..a5fd9ba 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -75,6 +75,10 @@ CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; }; }; + logind = { + lidSwitch = "suspend-then-hibernate"; + lidSwitchExternalPower = "suspend"; + } blueman.enable = true; fwupd.enable = true; printing.enable = true; @@ -165,6 +169,11 @@ ]; }; + systemd.sleep.extraConfig = '' + HibernateDelaySec=30m + SuspendState=mem + ''; + boot = { plymouth = {enable = true;};