AMD: add configurations for graphics cards

This commit is contained in:
Johannes Arnold committed 2021-03-24 02:18:03 +01:00
1 parent 758bc63af2
commit f2b2ae018d
4 files changed
+28

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
{ config, lib, pkgs, ... }:
{
boot.initrd.kernelModules = [ "amdgpu" ];
services.xserver.videoDrivers = [ "amdgpu" ];
hardware.opengl.extraPackages = with pkgs; [
rocm-opencl-icd
rocm-opencl-runtime
amdvlk
];
hardware.opengl = {
driSupport = lib.mkDefault true;
driSupport32Bit = lib.mkDefault true;
};
}
+4
View File
@@ -0,0 +1,4 @@
{
imports = [ ../. ];
boot.kernelParams = [ "radeon.cik_support=0" "amdgpu.cik_support=1" ];
}
@@ -0,0 +1,4 @@
{
imports = [ ../. ];
boot.kernelParams = [ "radeon.si_support=0" "amdgpu.si_support=1" ];
}