devos/users/profiles/sway/swayidle.nix

14 lines
314 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-02-25 00:13:37 +01:00
{ timeout = 300; command = "systemctl suspend"; }
];
};
}