Testing autosuspend
This commit is contained in:
parent
5381889a9e
commit
577b6e951c
1 changed files with 13 additions and 0 deletions
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue