From 3257cdae40f9be3d4561e5ad2acac1824c3ae417 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 14 Sep 2024 09:30:13 +0100 Subject: [PATCH] Remove reference to swaylockfx.nix in swayidle config --- system/home/swayidle/default.nix | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/system/home/swayidle/default.nix b/system/home/swayidle/default.nix index 298a2a73..0ac6c970 100644 --- a/system/home/swayidle/default.nix +++ b/system/home/swayidle/default.nix @@ -1,19 +1,13 @@ -{ 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"; - } - ]; - }; + services.swayidle = { + enable = true; + timeouts = [ + { + timeout = 60 * 15; # 15 minutes + command = "swaylockfx"; + } + ]; + }; }