This commit is contained in:
Grigory Shipunov 2023-01-14 12:57:53 +01:00
parent 9ff003a4c1
commit eabc64290a
Signed by: 0xa
GPG key ID: 91FA5E5BF9AA901C
6 changed files with 40 additions and 18 deletions

16
hosts/toaster/amd.nix Normal file
View file

@ -0,0 +1,16 @@
{ pkgs, config, ... }: {
boot.initrd.kernelModules = [ "amdgpu" ];
hardware.opengl = {
driSupport = true;
driSupport32Bit = true;
extraPackages = with pkgs; [
rocm-opencl-icd
rocm-opencl-runtime
amdvlk
];
extraPackages32 = with pkgs; [
driversi686Linux.amdvlk
];
};
}