Configure systemctl suspend-then-sleep

This commit is contained in:
ItsDrike 2024-08-07 21:54:51 +02:00
parent db46856117
commit c7bb1768be
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
2 changed files with 8 additions and 0 deletions

View file

@ -12,6 +12,7 @@ in {
./power-profiles-daemon
./upower.nix
./acpi.nix
./systemd.nix
];
config = mkIf (builtins.elem deviceType acceptedTypes) {

View file

@ -0,0 +1,7 @@
{
# /etc/systemd/sleep.conf
systemd.sleep.extraConfig = ''
# Configure `systemctl suspend-then-sleep` to enter hibernation after 3 hours of sleep.
HibernateDelaySec=10800
'';
}