From acea70bea2c6f22e29de7790e3df8c0e0b7ea2d0 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Tue, 25 Apr 2023 23:26:20 +0100 Subject: Add arrpc service --- homes/floppydisk/arrpc.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 homes/floppydisk/arrpc.nix (limited to 'homes/floppydisk/arrpc.nix') diff --git a/homes/floppydisk/arrpc.nix b/homes/floppydisk/arrpc.nix new file mode 100644 index 0000000..8e53c9d --- /dev/null +++ b/homes/floppydisk/arrpc.nix @@ -0,0 +1,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"; + }; + }; + }; +} + -- cgit v1.2.3-54-g00ecf