This repository has been archived on 2024-07-03. You can view files and clone it, but cannot push or open issues or pull requests.
home-manager/programs/sway/swayidle/default.nix
Evie Litherland-Smith 8e7bc3aeaf Make custom swaylock wrapper own derivation
Hopefully fix issues with swayidle not being able to find wrapped
script by passing derivation directly
2024-05-21 07:02:06 +01:00

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";
}
];
};
}