nixos-configs/configurations/nos/modules/jellyfin/packages.nix

21 lines
454 B
Nix
Raw Permalink Normal View History

{
config,
jellyfin-flake,
pkgs,
...
}: let
jellyPkgs =
2024-03-03 17:34:21 -05:00
if config.nvidia.enableCUDA
then jellyfin-flake.packages.${pkgs.system}.cudaPackages
else jellyfin-flake.packages.${pkgs.system};
in {
services.jellyfin = {
package = jellyPkgs.jellyfin;
webPackage = jellyPkgs.jellyfin-web.override {
forceEnableBackdrops = true;
forceDisablePreferFmp4 = true;
};
ffmpegPackage = jellyPkgs.jellyfin-ffmpeg;
};
}