From d649bd5a32b447f03d60062dfe7eadc70cde1675 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Mon, 19 Aug 2024 20:33:45 -0300 Subject: [PATCH] jellyfin: implement the skip intro patch --- services/jellyfin.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/services/jellyfin.nix b/services/jellyfin.nix index 5b5f683..badc27a 100644 --- a/services/jellyfin.nix +++ b/services/jellyfin.nix @@ -1,8 +1,27 @@ +{ pkgs, ... }: + { services.jellyfin = { enable = true; openFirewall = true; user = "wizardlink"; + package = pkgs.jellyfin.override { + jellyfin-web = pkgs.jellyfin-web.overrideAttrs ( + final: prev: { + installPhase = '' + runHook preInstall + + # Inject the skip intro button script. + sed -i "s###" dist/index.html + + mkdir -p $out/share + cp -a dist $out/share/jellyfin-web + + runHook postInstall + ''; + } + ); + }; }; services.jellyseerr = {