diff --git a/modules/home/cli/fun/mpd/default.nix b/modules/home/cli/fun/mpd/default.nix index 47ba57b..aee45c1 100755 --- a/modules/home/cli/fun/mpd/default.nix +++ b/modules/home/cli/fun/mpd/default.nix @@ -22,7 +22,7 @@ format = { hosts = [ "localhost:6600" ]; details = "$title"; - state = "🥒💦$artist"; + state = "$artist"; display_type = "state"; }; }; @@ -38,4 +38,20 @@ }; }; }; + + systemd.user.services.mpd-discord-rpc = { + Unit = { + After = [ + "mpd.service" + "graphical-session.target" + ]; + Requires = [ "mpd.service" ]; + PartOf = [ "graphical-session.target" ]; + }; + Service = { + Restart = "on-failure"; + RestartSec = "10s"; + }; + }; + }