Use hardware.graphics instead of hardware.opengl

This commit is contained in:
ItsDrike 2024-07-08 14:58:39 +02:00
parent cd412906a8
commit 82a07127b7
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -26,14 +26,17 @@ in
graphics = { graphics = {
enable = true; enable = true;
extraPackages = with pkgs; [
# Enable AMDVLK (AMD's open-source Vulkan driver) # Enable AMDVLK (AMD's open-source Vulkan driver)
extraPackages = with pkgs; [ amdvlk ]; amdvlk
extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ];
};
# OpenCL (Universal GPU computing API - not AMD specific) # OpenCL (Universal GPU computing API - not AMD specific)
# To check if this works, run: `nix run nixpkgs#clinfo` (after rebooting) # To check if this works, run: `nix run nixpkgs#clinfo` (after rebooting)
opengl.extraPackages = with pkgs; [rocmPackages.clr.icd]; rocmPackages.clr.icd
];
# AMDVLK for 32-bit applications
extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ];
};
}; };
# HIP (SDK that allows running CUDA code on AMD GPUs) # HIP (SDK that allows running CUDA code on AMD GPUs)