{ pkgs, ... }@inputs: let scripts = ((import ./scripts.nix) inputs); in { services.swayidle = { enable = true; events = [ { event = "before-sleep"; command = "${scripts.lockscreen}/bin/lockscreen"; } ]; timeouts = [ # { timeout = 300; command = "systemctl suspend"; } ]; }; }