fix: use suspend and hibernate

This commit is contained in:
Moritz Böhme 2023-05-14 15:27:25 +02:00
parent 13883e7178
commit 3a0d4845b0
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
2 changed files with 5 additions and 16 deletions

View file

@ -118,12 +118,10 @@ in
}
] ++ optional
(!cfg.nvidiaSupport) # TODO https://github.com/hyprwm/Hyprland/issues/1728
[
{
timeout = 30 * 60;
command = "${pkgs.systemd}/bin/systemctl suspend-then-hibernate";
}
];
{
timeout = 30 * 60;
command = "${pkgs.systemd}/bin/systemctl suspend-and-hibernate";
};
systemdTarget = "hyprland-session.target";
};
};