aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrankie B <git@diskfloppy.me>2023-04-25 23:26:20 +0100
committerFrankie B <git@diskfloppy.me>2023-04-25 23:26:20 +0100
commitacea70bea2c6f22e29de7790e3df8c0e0b7ea2d0 (patch)
treeb050cee003c00145c50665312f8e7c8a19d0c043
parentb5d6c46c51bf79ade726c73e1e884acd6ff5607d (diff)
Add arrpc service
-rw-r--r--homes/floppydisk/arrpc.nix26
-rw-r--r--homes/floppydisk/default.nix2
2 files changed, 27 insertions, 1 deletions
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";
+ };
+ };
+ };
+}
+
diff --git a/homes/floppydisk/default.nix b/homes/floppydisk/default.nix
index f7b2b8a..2269f8f 100644
--- a/homes/floppydisk/default.nix
+++ b/homes/floppydisk/default.nix
@@ -15,6 +15,7 @@
# You can also split up your configuration and import pieces of it here:
./neovim-flake.nix
+ ./arrpc.nix
];
home = {
@@ -27,7 +28,6 @@
_1password
neofetch
microsoft-edge
- webcord-vencord
jetbrains.ruby-mine
jetbrains.rider
jetbrains.phpstorm