18 lines
348 B
Nix
18 lines
348 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
swapDevices = [ {
|
|
device = "/swapfile";
|
|
size = config.variables.swapsize;
|
|
} ];
|
|
|
|
boot.resumeDevice = "/dev/disk/by-label/NIXROOT";
|
|
boot.kernelParams = [ "resume_offset=${toString config.variables.resumeOffset}" ];
|
|
|
|
systemd.sleep.extraConfig = ''
|
|
HibernateDelaySec=1h
|
|
'';
|
|
}
|
|
|
|
# vim: tabstop=2 softtabstop=2
|