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