host/home: configure hibernation #24

Merged
pleshevskiy merged 1 commit from home-hibernate into main 2025-03-12 21:17:00 +03:00
2 changed files with 16 additions and 0 deletions
hosts/home/hardware-configuration

View file

@ -3,6 +3,7 @@
{
imports = [
./generated.nix # Include the results of the hardware scan.
./hibernation.nix
./nfs.nix
];

View file

@ -0,0 +1,15 @@
{...}:
{
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;
}