feat: add amdgpu support and update DRI_PRIME config

Added `amdgpu` to the kernel modules to provide support for AMD GPUs. Updated the `DRI_PRIME` environment variable to specify the correct PCI device.
This commit is contained in:
Harald Hoyer 2024-11-22 09:47:27 +01:00
parent 08aae1a581
commit bad907bf04
2 changed files with 2 additions and 2 deletions

View file

@ -80,6 +80,7 @@ with lib.metacfg;
LIBVA_DRIVER_NAME = "iHD";
# NIXOS_OZONE_WL = "1";
# DRI_PRIME = "pci-0000_24_00_0";
DRI_PRIME = "pci-0000_00_02_0";
};
system.stateVersion = "23.11";

View file

@ -13,7 +13,6 @@
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [
"xhci_pci"
"thunderbolt"
"nvme"
"uas"
@ -22,7 +21,7 @@
];
boot.initrd.kernelModules = [ ];
boot.kernelPackages = lib.mkOverride 0 pkgs.linuxPackages_latest;
boot.kernelModules = [ "kvm-intel" ];
boot.kernelModules = [ "kvm-intel" "amdgpu" ];
boot.kernelParams = [
"lockdown=confidentiality"
"intel_iommu=on"