diff --git a/nixos/viridian/configuration.nix b/nixos/viridian/configuration.nix index 3966cd7..086a7dc 100644 --- a/nixos/viridian/configuration.nix +++ b/nixos/viridian/configuration.nix @@ -53,6 +53,10 @@ config = { # Disable if you don't want unfree packages allowUnfree = true; + packageOverrides = pkgs: { + # enable vaapi on OS-level + vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; }; + }; }; }; @@ -80,6 +84,17 @@ }; }; + 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) + ]; + }; + networking = { hostName = "viridian"; domain = "kanto.dev"; diff --git a/nixos/viridian/services/media-stack/default.nix b/nixos/viridian/services/media-stack/default.nix index 764d286..8a25cd4 100644 --- a/nixos/viridian/services/media-stack/default.nix +++ b/nixos/viridian/services/media-stack/default.nix @@ -1,6 +1,11 @@ -{ ... }: +{ pkgs, ... }: { + environment.systemPackages = [ + # Required for hardware acceleration + pkgs.jellyfin-ffmpeg + ]; + services = { # Volunteer-built media solution that puts you in control of your media jellyfin = {