devos/users/profiles/sway/swayidle.nix

14 lines
317 B
Nix
Raw Permalink 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 = [
# { timeout = 300; command = "systemctl suspend"; }
];
};
}