dotfiles/homes/floppydisk/arrpc.nix
2023-04-25 23:30:19 +01:00

27 lines
559 B
Nix

{
lib,
inputs,
pkgs,
...
}: with lib; let
arRPC = inputs.arrpc.packages.${pkgs.system}.default;
mkService = lib.recursiveUpdate {
Unit.PartOf = ["graphical-session.target"];
Unit.After = ["graphical-session.target"];
Install.WantedBy = ["graphical-session.target"];
};
in {
home.packages = [pkgs.webcord-vencord];
systemd.user.services = {
arRPC = mkService {
Unit.Description = "arRPC systemd service";
Service = {
ExecStart = "${lib.getExe arRPC}";
Restart = "always";
};
};
};
}