From e58f4b3aa0c6a055b3528db9f63c27cfff03932f Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Thu, 31 Oct 2024 18:06:07 +0530 Subject: [PATCH] nixos/hypridle: add hyprctl, hyprlock and pidof to path Without this journal error pops up as: Oct 31 17:51:00 Ainz-NIX hypridle[2720]: [LOG] Process Created with pid 5398 Oct 31 17:51:00 Ainz-NIX hypridle[5399]: /bin/sh: line 1: pidof: command not found Oct 31 17:51:00 Ainz-NIX hypridle[5398]: /bin/sh: line 1: hyprlock: command not found Oct 31 17:51:19 Ainz-NIX hypridle[2720]: [LOG] Got PrepareForSleep from dbus with sleep false Oct 31 17:51:19 Ainz-NIX hypridle[2720]: [LOG] Running: hyprctl dispatch dpms on Oct 31 17:51:19 Ainz-NIX hypridle[2720]: [LOG] Executing hyprctl dispatch dpms on Oct 31 17:51:19 Ainz-NIX hypridle[2720]: [LOG] Process Created with pid 5567 Oct 31 17:51:19 Ainz-NIX hypridle[5567]: /bin/sh: line 1: hyprctl: command not found --- nixos/modules/services/wayland/hypridle.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/modules/services/wayland/hypridle.nix b/nixos/modules/services/wayland/hypridle.nix index 231a0b7f93ec2..83a081aa67414 100644 --- a/nixos/modules/services/wayland/hypridle.nix +++ b/nixos/modules/services/wayland/hypridle.nix @@ -20,6 +20,11 @@ in systemd = { packages = [ cfg.package ]; user.services.hypridle.wantedBy = [ "graphical-session.target" ]; + user.services.hypridle.path = [ + config.programs.hyprland.package + config.programs.hyprlock.package + pkgs.procps + ]; }; };