feat: add swap space and try hybrid sleep again
This commit is contained in:
parent
452f2f4cc9
commit
659d79265e
2 changed files with 9 additions and 9 deletions
|
|
@ -134,20 +134,13 @@
|
|||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
# Power management for laptop
|
||||
# Configure lid switch behavior - hybrid-sleep with 1-minute delay to hibernate
|
||||
# Configure lid switch behavior - hybrid-sleep for optimal power management
|
||||
services.logind = {
|
||||
lidSwitch = "hybrid-sleep";
|
||||
lidSwitchExternalPower = "hybrid-sleep";
|
||||
lidSwitchDocked = "ignore";
|
||||
};
|
||||
|
||||
# Configure suspend-then-hibernate delay (in seconds)
|
||||
# This controls how long to stay in suspend before hibernating
|
||||
# 60 seconds = 1 minute
|
||||
systemd.sleep.extraConfig = ''
|
||||
HibernateDelaySec=60
|
||||
'';
|
||||
|
||||
# Enable auto-cpufreq for intelligent power management (replaces TLP)
|
||||
services.auto-cpufreq.enable = true;
|
||||
services.auto-cpufreq.settings = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue