From 6427ae95789c04534363d2b68289996f08077c0c Mon Sep 17 00:00:00 2001 From: wuyoli Date: Tue, 4 Oct 2022 18:50:55 +0200 Subject: [PATCH] swayidle: fix examples The example did not work before, since the systemd service does not have swaylock in its PATH. PR #3298 --- modules/services/swayidle.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/services/swayidle.nix b/modules/services/swayidle.nix index 66b4340c..c99296b5 100644 --- a/modules/services/swayidle.nix +++ b/modules/services/swayidle.nix @@ -73,7 +73,7 @@ in { default = [ ]; example = literalExpression '' [ - { timeout = 60; command = "swaylock -fF"; } + { timeout = 60; command = "${pkgs.swaylock}/bin/swaylock -fF"; } ] ''; description = "List of commands to run after idle timeout."; @@ -84,7 +84,7 @@ in { default = [ ]; example = literalExpression '' [ - { event = "before-sleep"; command = "swaylock"; } + { event = "before-sleep"; command = "${pkgs.swaylock}/bin/swaylock"; } { event = "lock"; command = "lock"; } ] '';