nixos-configs/devices/nos/modules/jellyfin/packages.nix
matt1432 4f473a4248
All checks were successful
Discord / discord commits (push) Has been skipped
feat(jellyfin): setup packages correctly with flake
2024-05-13 23:10:27 -04:00

23 lines
485 B
Nix

{
config,
jellyfin-flake,
pkgs,
...
}: let
jellyPkgs =
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
];
}