sayuri: Use mesa clover as OpenCL implementation

This commit is contained in:
Simon Bruder 2021-03-21 11:32:07 +01:00
parent 2c3e65cf5c
commit d15ee84750
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -68,9 +68,25 @@
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
# GPU
hardware.opengl.extraPackages = with pkgs; [
rocm-opencl-icd
];
hardware.opengl =
let
# nixpkgs PR adding mesa clover support
# (https://github.com/NixOS/nixpkgs/pull/82729) rebased onto nixos-21.05
pkgsMesaClover = import
(pkgs.fetchFromGitHub {
owner = "sbruder";
repo = "nixpkgs";
rev = "e2894ba6626028e081b8ff124a39d2b523a0371c";
sha256 = "sha256-brM17UTESqtJ8jXbBAl2xDW7ziCBWROb2W+06vIEfjU=";
})
{ inherit (pkgs) system; };
in
{
package = pkgsMesaClover.mesa_opencl.drivers;
extraPackages = [
pkgsMesaClover.mesa_opencl
];
};
environment.systemPackages = with pkgs; [
clinfo