mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 05:24:34 +00:00
Use hardware.graphics instead of hardware.opengl
This commit is contained in:
parent
cd412906a8
commit
82a07127b7
|
@ -26,14 +26,17 @@ in
|
||||||
graphics = {
|
graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# Enable AMDVLK (AMD's open-source Vulkan driver)
|
extraPackages = with pkgs; [
|
||||||
extraPackages = with pkgs; [ amdvlk ];
|
# Enable AMDVLK (AMD's open-source Vulkan driver)
|
||||||
|
amdvlk
|
||||||
|
|
||||||
|
# OpenCL (Universal GPU computing API - not AMD specific)
|
||||||
|
# To check if this works, run: `nix run nixpkgs#clinfo` (after rebooting)
|
||||||
|
rocmPackages.clr.icd
|
||||||
|
];
|
||||||
|
# AMDVLK for 32-bit applications
|
||||||
extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ];
|
extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# OpenCL (Universal GPU computing API - not AMD specific)
|
|
||||||
# To check if this works, run: `nix run nixpkgs#clinfo` (after rebooting)
|
|
||||||
opengl.extraPackages = with pkgs; [rocmPackages.clr.icd];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# HIP (SDK that allows running CUDA code on AMD GPUs)
|
# HIP (SDK that allows running CUDA code on AMD GPUs)
|
||||||
|
|
Loading…
Reference in a new issue