Enable amdgpu kernel module so opencl can work

This commit is contained in:
Paul-Henri Froidmont 2021-04-01 00:42:07 +02:00
parent e58706a5e3
commit a9146fcc32
2 changed files with 9 additions and 5 deletions

View file

@ -21,10 +21,14 @@
}; };
}; };
hardware.opengl.extraPackages = with pkgs; [ hardware.opengl = {
driSupport = true;
driSupport32Bit = true;
extraPackages = with pkgs; [
rocm-opencl-icd rocm-opencl-icd
rocm-opencl-runtime rocm-opencl-runtime
]; ];
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
eid-mw eid-mw

View file

@ -9,7 +9,7 @@
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];