gpu/amd: drop hardware.amdgpu.opencl option

This now conflicts with nixpkgs.
This commit is contained in:
Jörg Thalheim authored and mergify[bot] committed 2024-06-20 14:48:13 +00:00
1 parent 2f893e185c
commit 083823b790
4 files changed
+12 -17

No files matched your search

-11
View File
@@ -6,11 +6,6 @@
) // {
default = true;
};
options.hardware.amdgpu.opencl = lib.mkEnableOption (lib.mdDoc
"rocm opencl runtime (Install rocmPackages.clr and rocmPackages.clr.icd)"
) // {
default = true;
};
config = lib.mkMerge [
{
@@ -24,11 +19,5 @@
(lib.mkIf config.hardware.amdgpu.loadInInitrd {
boot.initrd.kernelModules = [ "amdgpu" ];
})
(lib.mkIf config.hardware.amdgpu.opencl {
hardware.opengl.extraPackages =
if pkgs ? rocmPackages.clr
then with pkgs.rocmPackages; [ clr clr.icd ]
else with pkgs; [ rocm-opencl-icd rocm-opencl-runtime ];
})
];
}