2022-02-22 01:03:10 +01:00
|
|
|
{ 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"; }
|
2022-02-22 01:03:10 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|