2024-08-19 20:33:45 -03:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
2023-11-05 04:53:31 -03:00
|
|
|
{
|
|
|
|
services.jellyfin = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
2024-01-17 18:13:55 -03:00
|
|
|
user = "wizardlink";
|
2024-08-19 20:33:45 -03:00
|
|
|
package = pkgs.jellyfin.override {
|
|
|
|
jellyfin-web = pkgs.jellyfin-web.overrideAttrs (
|
|
|
|
final: prev: {
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
# Inject the skip intro button script.
|
|
|
|
sed -i "s#</head>#<script src=\"configurationpage?name=skip-intro-button.js\"></script></head>#" dist/index.html
|
|
|
|
|
|
|
|
mkdir -p $out/share
|
|
|
|
cp -a dist $out/share/jellyfin-web
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
);
|
|
|
|
};
|
2023-11-05 04:53:31 -03:00
|
|
|
};
|
2024-08-05 18:00:15 -03:00
|
|
|
|
|
|
|
services.jellyseerr = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
2023-11-05 04:53:31 -03:00
|
|
|
}
|