Skip to content

Commit

Permalink
swayosd: 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 4cbc8a5 commit 51ba4aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/services/swayosd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ in {
services.swayosd = {
Unit = {
Description = "Volume/backlight OSD indicator";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
PartOf = [ config.wayland.systemd.target ];
After = [ config.wayland.systemd.target ];
ConditionEnvironment = "WAYLAND_DISPLAY";
Documentation = "man:swayosd(1)";
StartLimitBurst = 5;
Expand All @@ -76,7 +76,7 @@ in {
RestartSec = "2s";
};

Install = { WantedBy = [ "graphical-session.target" ]; };
Install = { WantedBy = [ config.wayland.systemd.target ]; };
};
};
};
Expand Down

0 comments on commit 51ba4aa

Please sign in to comment.