This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

machines.xerxes: fix suspend-then-hibernate

- swayidle was calling plain 'systemctl suspend' instead of suspend-then-hibernate
- add explicit SuspendMode/SuspendState to sleep.conf

+6 -2
+5 -1
machines/xerxes/physical.nix
··· 72 72 # s2idle for 15 minutes, then hibernate to save power 73 73 services.logind.powerKey = "suspend-then-hibernate"; 74 74 services.logind.lidSwitch = "suspend-then-hibernate"; 75 - systemd.sleep.settings.Sleep.HibernateDelaySec = "15min"; 75 + systemd.sleep.settings.Sleep = { 76 + SuspendMode = "s2idle"; 77 + SuspendState = "mem"; 78 + HibernateDelaySec = "15min"; 79 + }; 76 80 }
+1 -1
2configs/desktops/sway/default.nix
··· 59 59 ExecStart = '' 60 60 ${pkgs.swayidle}/bin/swayidle -w \ 61 61 timeout 120 '${lib.getExe' pkgs.systemd "systemctl"} --user start lock.target' \ 62 - timeout 300 '${lib.getExe' pkgs.systemd "systemctl"} suspend' \ 62 + timeout 300 '${lib.getExe' pkgs.systemd "systemctl"} suspend-then-hibernate' \ 63 63 before-sleep '${lib.getExe' pkgs.systemd "systemctl"} --user start lock.target' 64 64 ''; 65 65 Restart = "on-failure";