fix: headless hardware acceleration

requires kernel module and firmware
This commit is contained in:
Noah Masur 2023-06-04 16:14:11 +00:00
parent 472a2b965c
commit 04e8b8834e
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -36,6 +36,7 @@
# Enable VA-API for hardware transcoding
hardware.opengl = {
enable = true;
driSupport = true;
extraPackages = [ pkgs.libva ];
};