diff --git a/modules/services/mpd-discord-rpc.nix b/modules/services/mpd-discord-rpc.nix index 539416087..a865d337c 100644 --- a/modules/services/mpd-discord-rpc.nix +++ b/modules/services/mpd-discord-rpc.nix @@ -48,7 +48,10 @@ in { After = [ "graphical-session-pre.target" ]; PartOf = [ "graphical-session.desktop" ]; }; - Service.ExecStart = "${cfg.package}/bin/mpd-discord-rpc"; + Service = { + ExecStart = "${cfg.package}/bin/mpd-discord-rpc"; + Restart = "on-failure"; + }; Install.WantedBy = [ "graphical-session.target" ]; }; };