Hypridle ignoring system idle inhibit

this is not the idle_inhibitor on waybar.

I have noticed that hypridle will put my device to sleep even when some sort of inhibiting task is happening (like a video) for some reason the waybar idle_inhibitor is working fine.

using journalctl I found this: Apr 16 10:06:54 nixos hypridle[1817]: [LOG] Ignoring from onIdled(), inhibit locks: 1
I think this is related, but looking into the hypridle code, this seems to always be the case?

I think this is a home-manager issue more than a hypridle issue, I’ve had hyprland/hypridle on nixos before and this wasn’t a problem then. only difference now is I’m configuring it with home-manager.

this issue also happens in kde plasma though I nievely assumed it was still caused by hyridle

Apr 17 13:46:17 nixos dbus-daemon[1162]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'

this tells me it’s something in the system itself that’s preventing idle inhibition. but I have no idea what it could be.

Did you try to set ignore_dbus_inhibit to false? It’s working fine for me with home-manager:

  services.hypridle = {
    enable = true;
    settings = {
      general = {
        ignore_dbus_inhibit = false;
        # ...
      };
    };
  };

I did. It didn’t do anything, which makes sense, considering that the issue persists on KDE.

I’ve been thinking that I might have accidentally set an option to true in one of my nix files? I’ll try and get a GitHub repository open for people to check, but I haven’t found anything so far.

Don’t enable a service and have the same package in environment.systemPackages.

that’s what I did wrong, everything is fixed now.

This is proof that I am a noob.