From 75e187bfc5b20249af5035e272538e57522008a4 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 2 Aug 2024 20:30:35 -0400 Subject: [PATCH] swayidle: simplify --- homeManagerModules/services/swayidle/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeManagerModules/services/swayidle/default.nix b/homeManagerModules/services/swayidle/default.nix index 51cb1032..95453a87 100644 --- a/homeManagerModules/services/swayidle/default.nix +++ b/homeManagerModules/services/swayidle/default.nix @@ -19,11 +19,11 @@ in { } { event = "before-sleep"; - command = "${pkgs.swaylock}/bin/swaylock"; + command = "${lib.getExe pkgs.swaylock}"; } { event = "lock"; - command = "${pkgs.swaylock}/bin/swaylock"; + command = "${lib.getExe pkgs.swaylock}"; } ]; @@ -42,7 +42,7 @@ in { ++ lib.optional (!cfg.desktop.autoSuspend) { timeout = 600; - command = "${pkgs.swaylock}/bin/swaylock"; + command = "${lib.getExe pkgs.swaylock}"; } ++ lib.optional (!cfg.desktop.autoSuspend && cfg.desktop.hyprland.enable) {