nixos/home/desktop/sway/swayidle/default.nix

20 lines
416 B
Nix
Raw Normal View History

2024-07-30 15:06:34 +01:00
{ config, pkgs, ... }:
{
2024-07-30 15:06:34 +01:00
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";
}
];
};
}