Testing autosuspend

This commit is contained in:
albert 2023-08-27 15:21:27 +09:00
parent 5381889a9e
commit 577b6e951c

View file

@ -43,6 +43,19 @@
IdleAction=suspend-then-hibernate
'';
systemd.sleep.extraConfig = ''
AllowSuspend = yes
AllowHibernate = yes
AllowSuspendThenhibernate = yes
AllowHybridSleep = yes
HibernateDelaySec = 600
'';
systemd.autosuspend = {
enable = true;
};
# XDG portal
xdg.portal.enable = true;
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];