diff --git a/machines/mynix/default.nix b/machines/mynix/default.nix index 7bfb8a7..5c2fac2 100644 --- a/machines/mynix/default.nix +++ b/machines/mynix/default.nix @@ -10,10 +10,20 @@ height = 1440; }; - boot.kernelParams = [ - # https://gitlab.freedesktop.org/drm/amd/-/issues/2516#note_2119750 - #// "gpu_sched.sched_policy=0" # Attempt to fix stutter - ]; + boot = { + # Enable hibernation with a swapfile on btrfs + # https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation_into_swap_file + #?? findmnt -no UUID -T /swap/swapfile + resumeDevice = "/dev/disk/by-uuid/5df5028b-a3ba-4f07-80ef-fd5abd542a81"; + + kernelParams = [ + #?? sudo btrfs inspect-internal map-swapfile -r /swap/swapfile + "resume_offset=533760" + + # https://gitlab.freedesktop.org/drm/amd/-/issues/2516#note_2119750 + #// "gpu_sched.sched_policy=0" # Attempt to fix stutter + ]; + }; # _._ _,-'""`-._ # (,-.`._,'( |\`-/| diff --git a/machines/myork/default.nix b/machines/myork/default.nix index a9c8d5a..652bf6f 100644 --- a/machines/myork/default.nix +++ b/machines/myork/default.nix @@ -55,14 +55,14 @@ in services.keyd.keyboards.default.settings.main.rightcontrol = "layer(altgr)"; # No Ctrl_R - # Enable hibernation with a swapfile on btrfs - # https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation_into_swap_file - #?? findmnt -no UUID -T /swap/swapfile - #?? sudo btrfs inspect-internal map-swapfile -r /swap/swapfile boot = { + # Enable hibernation with a swapfile on btrfs + # https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation_into_swap_file + #?? findmnt -no UUID -T /swap/swapfile resumeDevice = "/dev/disk/by-uuid/f9416347-eff5-45d5-8dc3-93414c11ba6f"; kernelParams = [ + #?? sudo btrfs inspect-internal map-swapfile -r /swap/swapfile "resume_offset=533760" # Fix battery drain with suspend-then-hibernate