{ lib, pkgs, ... }: { services.swayidle = { enable = true; timeouts = [ { timeout = 175; command = "${lib.getExe pkgs.niri-stable} msg action power-off-monitors"; } { timeout = 180; command = "${lib.getExe' pkgs.systemd "loginctl"} lock-session"; } { timeout = 30*60; command = "${lib.getExe' pkgs.systemd "systemctl"} spspend"; } ]; }; }