Unverified Commit e58f4b3a authored by John Titor's avatar John Titor
Browse files

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
parent b1ec59b4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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
      ];
    };
  };