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