Compare commits

..

2 commits

Author SHA1 Message Date
aec3e12a23
tsuki: init jellyfin-rpc on startup
All checks were successful
ci/woodpecker/push/checks Pipeline was successful
2023-09-04 04:50:59 -04:00
811f5beae1
jellyfin-rpc: init at 0.14.6.04b412f 2023-09-04 04:50:30 -04:00
2 changed files with 40 additions and 0 deletions

View file

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

View file

@ -0,0 +1,24 @@
{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "jellyfin-rpc";
version = "0.14.6";
src = fetchFromGitHub {
owner = "Radiicall";
repo = "jellyfin-rpc";
rev = "04b412fb08268e9ee9e0aebfb72ea06e7284275a";
sha256 = "sha256-EcydqJoeLEfY40UHermU8jw7PHAAii8YQR/m4q9S1vo=";
};
cargoHash = "sha256-C+ZWYNW9tWol8n5y2q+qx0ava8fn3hqEzCxIEtCJDTw=";
meta = with lib; {
description = "Displays the content you're currently watching on Discord!";
homepage = "https://github.com/Radiicall/jellyfin-rpc";
license = licenses.gpl3;
maintainers = with maintainers; [notohh];
};
}