Files
helm/hosts/profiles/jellyfin/default.nix
T
2026-02-01 23:39:21 -08:00

43 lines
1001 B
Nix

{
config,
lib,
pkgs,
...
}:
{
# Enable Hardware Acceleration for transcoding
# Note: intel-vaapi-driver override with enableHybridCodec should be in flake.nix overlay if needed
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver
intel-vaapi-driver # renamed from vaapiIntel in 25.11
libva-vdpau-driver # renamed from vaapiVdpau in 25.11
libvdpau-va-gl
intel-compute-runtime # OpenCL filter support (hardware tonemapping and subtitle burn-in)
];
};
services.jellyfin = {
enable = true;
user = "jellyfin";
group = "video";
openFirewall = true; # only for defaults (8096)
};
users.users.jellyfin = {
extraGroups = [
"video"
"audio"
];
};
services.nginx = {
enable = true;
virtualHosts = {
"jellyfin.mossnet.lan" = {
forceSSL = false;
enableACME = false;
locations."/".proxyPass = "http://localhost:8096/";
};
};
};
}