diff --git a/hosts/profiles/jellyfin/default.nix b/hosts/profiles/jellyfin/default.nix index 744c1313..c111317b 100644 --- a/hosts/profiles/jellyfin/default.nix +++ b/hosts/profiles/jellyfin/default.nix @@ -1,5 +1,19 @@ { config, lib, pkgs, ... }: { + # Enable Hardware Acceleration for transcoding + nixpkgs.config.packageOverrides = pkgs: { + vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; }; + }; + hardware.opengl = { + enable = true; + extraPackages = with pkgs; [ + intel-media-driver + vaapiIntel + vaapiVdpau + libvdpau-va-gl + intel-compute-runtime # OpenCL filter support (hardware tonemapping and subtitle burn-in) + ]; + }; services.jellyfin = { enable = true; user = "jellyfin"; @@ -7,4 +21,7 @@ openFirewall = true; # only for defaults }; networking.firewall.allowedTCPPorts = [ 8181 ]; + users.users.jellyfin = { + extraGroups = [ "video" "audio" ]; + }; }