2024-03-01 21:36:57 -05:00
|
|
|
{
|
2024-03-02 23:36:07 -05:00
|
|
|
config,
|
2024-05-12 22:08:26 -04:00
|
|
|
jellyfin-flake,
|
2024-03-02 23:36:07 -05:00
|
|
|
pkgs,
|
2024-03-01 21:36:57 -05:00
|
|
|
...
|
|
|
|
}: let
|
2024-03-02 23:36:07 -05:00
|
|
|
jellyPkgs =
|
2024-03-03 17:34:21 -05:00
|
|
|
if config.nvidia.enableCUDA
|
2024-05-13 23:10:27 -04:00
|
|
|
then jellyfin-flake.packages.${pkgs.system}.cudaPackages
|
|
|
|
else jellyfin-flake.packages.${pkgs.system};
|
2024-03-01 21:36:57 -05:00
|
|
|
in {
|
2024-05-13 23:10:27 -04:00
|
|
|
services.jellyfin = {
|
|
|
|
package = jellyPkgs.jellyfin;
|
2024-12-21 21:42:01 -05:00
|
|
|
webPackage = jellyPkgs.jellyfin-web.override {
|
|
|
|
forceEnableBackdrops = true;
|
|
|
|
forceDisablePreferFmp4 = true;
|
|
|
|
};
|
2024-05-13 23:10:27 -04:00
|
|
|
ffmpegPackage = jellyPkgs.jellyfin-ffmpeg;
|
|
|
|
};
|
2024-03-01 21:36:57 -05:00
|
|
|
}
|