Hibernation? + battery widget fix for framework 12
This commit is contained in:
parent
cc32b7c14f
commit
873a9c562b
4 changed files with 47 additions and 13 deletions
18
nixos/hosts/kylekrein-framework12/hibernation.nix
Normal file
18
nixos/hosts/kylekrein-framework12/hibernation.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{pkgs, ...}: {
|
||||
boot = {
|
||||
kernelParams = [
|
||||
"resume_offset=533760"
|
||||
"mem_sleep_default=deep"
|
||||
];
|
||||
resumeDevice = "/dev/disk/by-label/nixos";
|
||||
};
|
||||
services.logind = {
|
||||
lidSwitch = "suspend-then-hibernate";
|
||||
powerKey = "suspend-then-hibernate";
|
||||
powerKeyLongPress = "poweroff";
|
||||
};
|
||||
systemd.sleep.extraConfig = ''
|
||||
HibernateDelaySec=30m
|
||||
SuspendState=mem
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue