From 04e8b8834e68af7d2f298802f3d74c6733287e92 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sun, 4 Jun 2023 16:14:11 +0000 Subject: [PATCH] fix: headless hardware acceleration requires kernel module and firmware --- hosts/swan/default.nix | 3 ++- modules/nixos/services/jellyfin.nix | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/swan/default.nix b/hosts/swan/default.nix index fb57441..fd33bde 100644 --- a/hosts/swan/default.nix +++ b/hosts/swan/default.nix @@ -21,8 +21,9 @@ nixpkgs.lib.nixosSystem { boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; + boot.initrd.kernelModules = [ "amdgpu" ]; boot.kernelModules = [ "kvm-intel" ]; + hardware.enableRedistributableFirmware = true; powerManagement.cpuFreqGovernor = "powersave"; hardware.cpu.intel.updateMicrocode = true; diff --git a/modules/nixos/services/jellyfin.nix b/modules/nixos/services/jellyfin.nix index cfa5e38..a16c4f6 100644 --- a/modules/nixos/services/jellyfin.nix +++ b/modules/nixos/services/jellyfin.nix @@ -36,6 +36,7 @@ # Enable VA-API for hardware transcoding hardware.opengl = { enable = true; + driSupport = true; extraPackages = [ pkgs.libva ]; };