From aec3e12a2378d57e555ee68d541ec78e3f753e39 Mon Sep 17 00:00:00 2001 From: notohh Date: Mon, 4 Sep 2023 04:50:59 -0400 Subject: [PATCH] tsuki: init jellyfin-rpc on startup --- hosts/tsuki/services/jellyfin-rpc.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 hosts/tsuki/services/jellyfin-rpc.nix diff --git a/hosts/tsuki/services/jellyfin-rpc.nix b/hosts/tsuki/services/jellyfin-rpc.nix new file mode 100644 index 0000000..c1300ba --- /dev/null +++ b/hosts/tsuki/services/jellyfin-rpc.nix @@ -0,0 +1,16 @@ +_: { + systemd.services.jellyfin-rpc = { + enable = true; + wantedBy = [ + "multi-user.target" + ]; + description = "Displays the content you're currently watching on Discord!"; + + serviceConfig = { + User = "root"; + ExecStart = "/nix/store/gfwcai4i1cl3w8lbli4dsg0z369z2fn4-user-environment/bin/jellyfin-rpc --config /home/notoh/.config/jellyfin-rpc/main.json"; + Restart = "always"; + RestartSec = 30; + }; + }; +}