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
This commit is contained in:
John Titor 2024-10-31 18:06:07 +05:30
parent b1ec59b492
commit e58f4b3aa0
No known key found for this signature in database
GPG Key ID: 29B0514F4E3C1CC0

View File

@ -20,6 +20,11 @@ in
systemd = { systemd = {
packages = [ cfg.package ]; packages = [ cfg.package ];
user.services.hypridle.wantedBy = [ "graphical-session.target" ]; user.services.hypridle.wantedBy = [ "graphical-session.target" ];
user.services.hypridle.path = [
config.programs.hyprland.package
config.programs.hyprlock.package
pkgs.procps
];
}; };
}; };