diff --git a/home/wayland/swayidle/default.nix b/home/wayland/swayidle/default.nix index 5c2f919..ca8fa27 100644 --- a/home/wayland/swayidle/default.nix +++ b/home/wayland/swayidle/default.nix @@ -1,11 +1,17 @@ -{pkgs, ...}: { +{ + inputs, + pkgs, + ... +}: let + hyprland_pkg = inputs.hyprland.packages."${pkgs.system}".hyprland; +in { services.swayidle = { enable = true; systemdTarget = "hyprland-session.target"; events = [ { event = "after-resume"; - command = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on"; + command = "${hyprland_pkg}/bin/hyprctl dispatch dpms on"; } { event = "before-sleep"; @@ -19,7 +25,7 @@ } { timeout = 150; - command = "${pkgs.hyprland}/bin/hyprctl dispatch dpms off"; + command = "${hyprland_pkg}/bin/hyprctl dispatch dpms off"; } { timeout = 300;