nixos/home/desktop/sway/swayidle/default.nix
Evie Litherland-Smith 05d19c1813 Add plasma config back, reconfigure to coexist with sway config
Split system-level sway and plasma config into separate files, move
sway-specific home-level config to sway file. Only truly common
desktop components are kept in common spaces. This allows much easier
switching between using KDE Plasma and Sway.
2024-07-10 08:27:17 +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";
}
];
};
}