devos/users/profiles/sway/swayidle.nix

14 lines
315 B
Nix
Raw Normal View History

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