Compare commits
2 commits
47911123ad
...
aec3e12a23
Author | SHA1 | Date | |
---|---|---|---|
aec3e12a23 | |||
811f5beae1 |
2 changed files with 40 additions and 0 deletions
16
hosts/tsuki/services/jellyfin-rpc.nix
Normal file
16
hosts/tsuki/services/jellyfin-rpc.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
24
pkgs/jellyfin-rpc/default.nix
Normal file
24
pkgs/jellyfin-rpc/default.nix
Normal 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];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue