Evie Litherland-Smith
8e7bc3aeaf
Hopefully fix issues with swayidle not being able to find wrapped script by passing derivation directly
21 lines
388 B
Nix
21 lines
388 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
imports = [../swaylock/default.nix];
|
|
services.swayidle = let
|
|
swaylockfx =
|
|
pkgs.callPackage ../swaylock/swaylockfx.nix
|
|
{swaylock-effects = config.programs.swaylock.package;};
|
|
in {
|
|
enable = true;
|
|
timeouts = [
|
|
{
|
|
timeout = 60 * 15; # 15 minutes
|
|
command = "${swaylockfx}/bin/swaylockfx";
|
|
}
|
|
];
|
|
};
|
|
}
|