mirror of
https://github.com/librephoenix/nixos-config
synced 2025-10-18 17:44:06 +05:30
Fix amdgpu
This commit is contained in:
parent
e488b0212d
commit
c931983717
1 changed files with 5 additions and 2 deletions
|
@ -60,6 +60,9 @@
|
||||||
hardware.amdgpu.initrd.enable = true;
|
hardware.amdgpu.initrd.enable = true;
|
||||||
hardware.amdgpu.opencl.enable = true;
|
hardware.amdgpu.opencl.enable = true;
|
||||||
hardware.amdgpu.amdvlk.enable = true;
|
hardware.amdgpu.amdvlk.enable = true;
|
||||||
|
environment.sessionVariables = {
|
||||||
|
VK_ICD_FILENAMES = "/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json"; # fix for godot
|
||||||
|
};
|
||||||
|
|
||||||
# makes disk io not freeze the computer
|
# makes disk io not freeze the computer
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
|
@ -71,8 +74,8 @@
|
||||||
rocmEnv = pkgs.symlinkJoin {
|
rocmEnv = pkgs.symlinkJoin {
|
||||||
name = "rocm-combined";
|
name = "rocm-combined";
|
||||||
paths = with pkgs.rocmPackages; [
|
paths = with pkgs.rocmPackages; [
|
||||||
#rocblas
|
rocblas
|
||||||
#hipblas
|
hipblas
|
||||||
clr
|
clr
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue