ark/users/modules/discordrp-mpris/default.nix

17 lines
438 B
Nix
Raw Normal View History

2023-11-11 18:39:26 +03:00
{inputs, pkgs, ...}: {
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
}