chore: update gpu config
This commit is contained in:
@@ -1,23 +1,21 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{pkgs, ...}: {
|
||||
imports = [];
|
||||
|
||||
boot.kernelModules = ["amdgpu"];
|
||||
boot.initrd.kernelModules = ["amdgpu"];
|
||||
|
||||
# services.xserver.enable = true;
|
||||
services.xserver.videoDrivers = ["amdgpu"];
|
||||
|
||||
environment.variables = {
|
||||
ROC_ENABLE_PRE_VEGA = "1";
|
||||
};
|
||||
|
||||
boot.kernelModules = ["amdgpu"];
|
||||
boot.initrd.kernelModules = ["amdgpu"];
|
||||
|
||||
hardware.graphics.enable = true;
|
||||
hardware.graphics.enable32Bit = true;
|
||||
hardware.graphics.extraPackages = with pkgs; [
|
||||
amdvlk
|
||||
# OpenCL
|
||||
rocmPackages.clr.icd
|
||||
vaapiVdpau
|
||||
clinfo
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user