2022-06-29 00:02:00 +02:00
|
|
|
{ pkgs, ... }@inputs:
|
|
|
|
let scripts = ((import ./scripts.nix) inputs); in
|
2022-02-22 01:03:10 +01:00
|
|
|
{
|
|
|
|
services.swayidle = {
|
|
|
|
enable = true;
|
|
|
|
events = [
|
|
|
|
{ event = "before-sleep"; command = "${scripts.lockscreen}/bin/lockscreen"; }
|
|
|
|
];
|
|
|
|
timeouts = [
|
2022-06-29 00:02:00 +02:00
|
|
|
# { timeout = 300; command = "systemctl suspend"; }
|
2022-02-22 01:03:10 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|