diff --git a/modules/services/hypridle.nix b/modules/services/hypridle.nix index 0d8a337b..c2165e5b 100644 --- a/modules/services/hypridle.nix +++ b/modules/services/hypridle.nix @@ -74,13 +74,13 @@ in { }; systemd.user.services.hypridle = { - Install = { WantedBy = [ "graphical-session.target" ]; }; + Install = { WantedBy = [ config.wayland.systemd.target ]; }; Unit = { ConditionEnvironment = "WAYLAND_DISPLAY"; Description = "hypridle"; - After = [ "graphical-session-pre.target" ]; - PartOf = [ "graphical-session.target" ]; + After = [ config.wayland.systemd.target ]; + PartOf = [ config.wayland.systemd.target ]; X-Restart-Triggers = mkIf (cfg.settings != { }) [ "${config.xdg.configFile."hypr/hypridle.conf".source}" ]; };