use the arrpc service provided by the hm-module

This commit is contained in:
NotAShelf 2023-05-08 20:15:26 +03:00 committed by Frankie B
parent 72a98e4d55
commit ec8b92e929
2 changed files with 11 additions and 23 deletions

View file

@ -23,11 +23,11 @@
]
},
"locked": {
"lastModified": 1682178574,
"narHash": "sha256-CMEeluAfiDt0c9rl9vcbqgOxm/0nFtmHJYiTCIEDLGo=",
"lastModified": 1683545835,
"narHash": "sha256-GfsXWlidRkQG/eB/iwWrUAvB2v2uYrQr1LKRAToId/s=",
"owner": "notashelf",
"repo": "arrpc-flake",
"rev": "965b885e182a695e45fba3ad97ec85e1fe31171a",
"rev": "b29476f08795519fdac720fb4caf46dbe756823b",
"type": "github"
},
"original": {

View file

@ -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;
}