aboutsummaryrefslogtreecommitdiff
path: root/homes/floppydisk/arrpc.nix
blob: 8e53c9d3d8f8818f6c38006bb347162fbd19c1fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
  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"];
  };
  home.packages = [pkgs.webcord-vencord];
in {
  systemd.user.services = {
    arRPC = mkService {
      Unit.Description = "arRPC systemd service";
      Service = {
        ExecStart = "${lib.getExe arRPC}";
        Restart = "always";
      };
    };
  };
}