use the arrpc service provided by the hm-module
This commit is contained in:
parent
72a98e4d55
commit
ec8b92e929
2 changed files with 11 additions and 23 deletions
|
@ -23,11 +23,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1682178574,
|
"lastModified": 1683545835,
|
||||||
"narHash": "sha256-CMEeluAfiDt0c9rl9vcbqgOxm/0nFtmHJYiTCIEDLGo=",
|
"narHash": "sha256-GfsXWlidRkQG/eB/iwWrUAvB2v2uYrQr1LKRAToId/s=",
|
||||||
"owner": "notashelf",
|
"owner": "notashelf",
|
||||||
"repo": "arrpc-flake",
|
"repo": "arrpc-flake",
|
||||||
"rev": "965b885e182a695e45fba3ad97ec85e1fe31171a",
|
"rev": "b29476f08795519fdac720fb4caf46dbe756823b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -1,26 +1,14 @@
|
||||||
{
|
{
|
||||||
lib,
|
|
||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: with lib; let
|
}: {
|
||||||
arRPC = inputs.arrpc.packages.${pkgs.system}.default;
|
imports = [
|
||||||
|
inputs.arrpc.homeManagerModules.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];
|
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;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue