Skip to content

Commit

Permalink
fnott: use config.wayland.systemd.target
Browse files Browse the repository at this point in the history
Also add missing `ConditionEnvironment`.
  • Loading branch information
thiagokokada authored and rycee committed Jan 3, 2025
1 parent 656ae5a commit 14cb0c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions modules/services/fnott.nix
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ in {
Unit = {
Description = "Fnott notification daemon";
Documentation = "man:fnott(1)";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
After = [ config.wayland.systemd.target ];
PartOf = [ config.wayland.systemd.target ];
ConditionEnvironment = "WAYLAND_DISPLAY";
};

Service = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ ExecStart=@fnott@/bin/fnott -c /home/hm-user/.config/fnott/fnott.ini
Type=dbus

[Unit]
After=graphical-session-pre.target
After=graphical-session.target
ConditionEnvironment=WAYLAND_DISPLAY
Description=Fnott notification daemon
Documentation=man:fnott(1)
PartOf=graphical-session.target

0 comments on commit 14cb0c8

Please sign in to comment.