system/hosts/home/hardware-configuration/hibernation.nix

15 lines
275 B
Nix

{...}:
{
swapDevices = [
{
device = "/var/lib/swapfile";
size = 64 * 1024;
}
];
boot.resumeDevice = "/dev/disk/by-uuid/969c5f68-631d-4429-b81b-0d81e050449b";
boot.kernelParams = [ "resume_offset=156735488" ];
powerManagement.enable = true;
}