nix-config/hosts/sisyphe/features/multimedia/jellyfin.nix

35 lines
856 B
Nix
Raw Normal View History

2024-08-19 16:02:07 +02:00
{ pkgs, config, ... }:
2024-08-16 16:42:55 +02:00
{
2024-08-19 16:02:07 +02:00
# 1. enable vaapi on OS-level
nixpkgs.config.packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
};
2024-12-26 20:55:36 +01:00
hardware.graphics = {
2024-08-19 16:02:07 +02:00
# hardware.opengl in 24.05
enable = true;
extraPackages = with pkgs; [
intel-media-driver
intel-vaapi-driver # previously vaapiIntel
vaapiVdpau
intel-compute-runtime # OpenCL filter support (hardware tonemapping and subtitle burn-in)
intel-media-sdk # QSV up to 11th gen
];
};
2024-08-25 12:07:50 +02:00
2024-08-16 16:42:55 +02:00
services.jellyfin = {
enable = true;
openFirewall = true;
};
2024-10-30 17:44:54 +01:00
services.caddy.virtualHosts = {
"http://jellyfin.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :8096
'';
"http://media.hypervirtual.world".extraConfig = ''
reverse_proxy :8096
'';
};
2024-08-16 16:42:55 +02:00
}