monolith: allow hibernation

This commit is contained in:
Leonardo Eugênio 2023-08-20 17:46:49 -03:00
parent 15397a871a
commit a2ca5e0042

View file

@ -17,8 +17,12 @@ in
];
boot.kernelParams = [
"video=DP-1:1920x1080@144"
# hibernation
"resume=LABEL=BTRFS_ROOT" # findmnt -o LABEL --noheadings /swap/
"resume_offset=36709632" # btrfs inspect-internal map-swapfile -r /swap/swapfile
];
systemd.sleep.extraConfig = ''
HibernateDelaySec=30s
SuspendState=mem
'';