Remove reference to swaylockfx.nix in swayidle config

This commit is contained in:
Evie Litherland-Smith 2024-09-14 09:30:13 +01:00
parent c9b3731026
commit 3257cdae40

View file

@ -1,18 +1,12 @@
{ config, pkgs, ... }: { ... }:
{ {
imports = [ ../swaylock/default.nix ]; imports = [ ../swaylock/default.nix ];
services.swayidle = services.swayidle = {
let
swaylockfx = pkgs.callPackage ../swaylock/swaylockfx.nix {
swaylock-effects = config.programs.swaylock.package;
};
in
{
enable = true; enable = true;
timeouts = [ timeouts = [
{ {
timeout = 60 * 15; # 15 minutes timeout = 60 * 15; # 15 minutes
command = "${swaylockfx}/bin/swaylockfx"; command = "swaylockfx";
} }
]; ];
}; };