mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 00:57:22 +01:00
chore[work]: improve suspend behaviour
This commit is contained in:
parent
9da6bd15ab
commit
e07b3c2b6e
9 changed files with 221 additions and 75 deletions
|
|
@ -17,8 +17,15 @@
|
|||
boot = {
|
||||
kernelParams = [
|
||||
"resume_offset=${builtins.toString config.swarselsystems.hibernation.offset}"
|
||||
# "mem_sleep_default=deep"
|
||||
];
|
||||
inherit (config.swarselsystems.hibernation) resumeDevice;
|
||||
};
|
||||
systemd.services."systemd-suspend-then-hibernate".aliases = [ "systemd-suspend.service" ];
|
||||
powerManagement.enable = true;
|
||||
systemd.sleep.extraConfig = ''
|
||||
HibernateDelaySec=120m
|
||||
SuspendState=freeze
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue