From ec8b92e92903b626c90aa6a315c4f91d76a3bae0 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Mon, 8 May 2023 20:15:26 +0300 Subject: use the arrpc service provided by the hm-module --- homes/floppydisk/arrpc.nix | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) (limited to 'homes/floppydisk/arrpc.nix') diff --git a/homes/floppydisk/arrpc.nix b/homes/floppydisk/arrpc.nix index 47a5b16..5431d57 100644 --- a/homes/floppydisk/arrpc.nix +++ b/homes/floppydisk/arrpc.nix @@ -1,26 +1,14 @@ { - 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 { +}: { + imports = [ + inputs.arrpc.homeManagerModules.default + ]; + home.packages = [pkgs.webcord-vencord]; - systemd.user.services = { - arRPC = mkService { - Unit.Description = "arRPC systemd service"; - Service = { - ExecStart = "${lib.getExe arRPC}"; - Restart = "always"; - }; - }; - }; -} + # provided by the arrpc-flake home-manager module + services.arrpc.enable = true; +} -- cgit v1.2.3-54-g00ecf