diff options
| author | Christian <[email protected]> | 2026-05-16 17:32:26 -0500 |
|---|---|---|
| committer | Christian <[email protected]> | 2026-05-16 17:32:26 -0500 |
| commit | 743e9c722849f0e5517709e637cf618317881b15 (patch) | |
| tree | 0dcdf5b1f49866a4124f90c5c2fae688bd53da89 | |
| parent | f8f120ef064010fb3d178ffa1924b1c87e7f803f (diff) | |
Laptop Hibernation
| -rw-r--r-- | hosts/laptop/configuration.nix | 11 |
1 files changed, 11 insertions, 0 deletions
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"; } |
