home/natto: add mpdas

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2022-11-10 20:03:28 +05:30
parent 67f879cfc1
commit ddbb19952d
2 changed files with 19 additions and 0 deletions

View File

@@ -50,4 +50,20 @@ in
};
};
};
systemd.user.services.mpdas = {
Unit = {
After = [ "mpd.service" ];
Description = "Music Player Daemon AutoScrobbler";
};
Install.WantedBy = [ "default.target" ];
Service = {
Type = "simple";
Restart = "on-failure";
RestartSec = "15s";
ExecStart = "${pkgs.mpdas}/bin/mpdas -c ${config.age.secrets.mpdasrc.path}";
};
};
}