Fix hibernate spelling

This commit is contained in:
Aode 2023-11-12 11:59:02 -06:00
parent b5e72b094c
commit 5d3dee54c0

View file

@ -36,14 +36,25 @@
boot.kernelParams = [ "mem_sleep_default=deep" ];
systemd.sleep.extraConfig = ''
HybernateDelaySec=10m
HibernateDelaySec=10m
SuspendState=mem
'';
# Don't sleep if charging or docked
services.logind.lidSwitchDocked = "ignore";
services.logind.lidSwitchExternalPower = "ignore";
# suspend-then-hibernate if lid closed on battery or power button pressed
services.logind.lidSwitch = "suspend-then-hibernate";
services.logind.extraConfig = ''
HandleSuspendKey=suspend-then-hibernate
'';
# should be inferred as swap partition by default
# boot.resumeDevice = "/dev/disk/by-uuid/8b65fe7f-2115-422f-9443-7c6265d4d8ea";
security.protectKernelImage = false;
# Uncomment if hibernate doesn't work
# security.protectKernelImage = false;
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];