From 938c7facab4c7868fa8bd5541880da5115991041 Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 28 Nov 2025 00:46:19 -0600 Subject: [PATCH] feat: added systemd service for mpd-discord-rpc --- modules/home/cli/fun/mpd/default.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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"; + }; + }; + }