host/home: configure hibernation
This commit is contained in:
parent
bb92f8e28d
commit
7ce3a9fb70
2 changed files with 16 additions and 0 deletions
hosts/home/hardware-configuration
|
@ -3,6 +3,7 @@
|
|||
{
|
||||
imports = [
|
||||
./generated.nix # Include the results of the hardware scan.
|
||||
./hibernation.nix
|
||||
./nfs.nix
|
||||
];
|
||||
|
||||
|
|
15
hosts/home/hardware-configuration/hibernation.nix
Normal file
15
hosts/home/hardware-configuration/hibernation.nix
Normal 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;
|
||||
}
|
Loading…
Add table
Reference in a new issue