1
0

configuration/desktop: setup hibernate

This commit is contained in:
clerie 2023-06-19 22:45:01 +02:00
parent 3ec434470a
commit abfafdd0af
2 changed files with 12 additions and 0 deletions

View File

@ -4,6 +4,7 @@
imports = [
./fonts.nix
./gnome.nix
./power.nix
./xserver.nix
];

View File

@ -0,0 +1,11 @@
{ lib, config, ... }:
{
boot.resumeDevice = (lib.head config.swapDevices).device;
services.logind = {
lidSwitch = "suspend-then-hibernate";
};
systemd.sleep.extraConfig = ''
HibernateDelaySec=30m
'';
}