13 lines
295 B
Nix
13 lines
295 B
Nix
{ pkgs, ... }@inputs:
|
|
let scripts = ((import ./scripts.nix) inputs); in
|
|
{
|
|
services.swayidle = {
|
|
enable = true;
|
|
events = [
|
|
{ event = "before-sleep"; command = "${scripts.lockscreen}/bin/lockscreen"; }
|
|
];
|
|
timeouts = [
|
|
# { timeout = 60; command = ; }
|
|
];
|
|
};
|
|
}
|