From a2ca5e00422d6c5ddddc8921dea1c3dd4f90906b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Sun, 20 Aug 2023 17:46:49 -0300 Subject: [PATCH] monolith: allow hibernation --- hosts/monolith.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/monolith.nix b/hosts/monolith.nix index 2d2a0db..73923fa 100644 --- a/hosts/monolith.nix +++ b/hosts/monolith.nix @@ -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 '';