aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNotAShelf <itsashelf@gmail.com>2023-05-08 20:15:26 +0300
committerFrankie B <frankieraybrown@gmail.com>2023-05-08 20:13:19 +0100
commitec8b92e92903b626c90aa6a315c4f91d76a3bae0 (patch)
tree53f2f54afd424f876fbfef3e3ccbcae9125289b3
parent72a98e4d5578e6486ffe5d4fcc4881cf0c17563a (diff)
use the arrpc service provided by the hm-module
-rw-r--r--flake.lock6
-rw-r--r--homes/floppydisk/arrpc.nix28
2 files changed, 11 insertions, 23 deletions
diff --git a/flake.lock b/flake.lock
index c3d272c..0c57f8c 100644
--- a/flake.lock
+++ b/flake.lock
@@ -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": {
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;
+}