From 743e9c722849f0e5517709e637cf618317881b15 Mon Sep 17 00:00:00 2001 From: Christian Date: Sat, 16 May 2026 17:32:26 -0500 Subject: Laptop Hibernation --- hosts/laptop/configuration.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index a95c60d..a15ab2b 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -36,6 +36,7 @@ programs.bash.shellAliases = { battery = "echo $(($(cat /sys/class/power_supply/BAT0/charge_now)*100/$(cat /sys/class/power_supply/BAT0/charge_full)))%"; + hibernate = "systemctl hibernate"; }; services.keyd = { @@ -48,5 +49,15 @@ home-manager.users.christian.custom.xmobarBattery = true; + swapDevices = [ + { + device = "/swapfile"; + size = 8192; # 8GB in MiB + } + ]; + + boot.resumeDevice = "/dev/disk/by-uuid/56ae0488-d952-41d8-8128-60a46e979d91"; + boot.kernelParams = [ "resume_offset=12832768" ]; + system.stateVersion = "25.11"; } -- cgit v1.2.3