From 472a2b965c2efc8f35adeb198b7ad24eb085b0ba Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sun, 4 Jun 2023 14:22:04 +0000 Subject: [PATCH] attempt to enable hardware acceleration --- modules/nixos/services/jellyfin.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/nixos/services/jellyfin.nix b/modules/nixos/services/jellyfin.nix index a76af9e..cfa5e38 100644 --- a/modules/nixos/services/jellyfin.nix +++ b/modules/nixos/services/jellyfin.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: { +{ config, pkgs, lib, ... }: { options = { streamServer = lib.mkOption { @@ -33,6 +33,12 @@ "d /var/lib/jellyfin/library 0775 jellyfin jellyfin" ]; + # Enable VA-API for hardware transcoding + hardware.opengl = { + enable = true; + extraPackages = [ pkgs.libva ]; + }; + }; }