diff --git a/nixos/common/desktops/hyprland/default.nix b/nixos/common/desktops/hyprland/default.nix index 4295e1e5..efd33fbe 100644 --- a/nixos/common/desktops/hyprland/default.nix +++ b/nixos/common/desktops/hyprland/default.nix @@ -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 ];