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

24 lines
485 B
Nix
Raw 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;
ffmpegPackage = jellyPkgs.jellyfin-ffmpeg;
};
environment.systemPackages = with config.services.jellyfin; [
finalPackage
webPackage
ffmpegPackage
];
}