2024-05-28 05:49:23 +03:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2023-11-11 18:39:26 +03:00
|
|
|
systemd.user.services.discordrp-mpris = {
|
|
|
|
Install = {
|
|
|
|
WantedBy = ["default.target"];
|
|
|
|
};
|
|
|
|
Unit = {
|
|
|
|
Description = "discordrp-mpris";
|
|
|
|
};
|
|
|
|
Service = {
|
|
|
|
ExecStart = "${inputs.discordrp-mpris.packages.${pkgs.system}.default}/bin/discordrp-mpris";
|
|
|
|
Restart = "on-failure";
|
|
|
|
RestartSec = 5;
|
|
|
|
};
|
|
|
|
};
|
2023-11-24 17:02:44 +03:00
|
|
|
xdg.configFile."discordrp-mpris/config.toml".source = ./config.toml;
|
2023-11-11 18:39:26 +03:00
|
|
|
}
|