1
0
nixfiles/configuration/desktop/power.nix

12 lines
221 B
Nix
Raw Normal View History

2023-06-19 22:45:01 +02:00
{ lib, config, ... }:
{
boot.resumeDevice = (lib.head config.swapDevices).device;
services.logind = {
lidSwitch = "suspend-then-hibernate";
};
systemd.sleep.extraConfig = ''
HibernateDelaySec=30m
'';
}