Skip to content

Commit

Permalink
hypridle: use config.wayland.systemd.target
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada authored and rycee committed Jan 3, 2025
1 parent da12f0b commit a6db8c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/services/hypridle.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}" ];
};
Expand Down

0 comments on commit a6db8c8

Please sign in to comment.