added extra amdgpu support

This commit is contained in:
Sven Vogel 2023-12-14 23:15:17 +01:00
parent 9996b7d1a3
commit 90992598a2
3 changed files with 25 additions and 1 deletions

20
hardware/amdgpu.nix Normal file
View File

@ -0,0 +1,20 @@
{ pkgs, config, ... }: {
# Make the kernel use the correct driver early
boot.initrd.kernelModules = [ "amdgpu" ];
# For 32 bit applications
hardware.opengl.driSupport32Bit = true;
# AMDVLK drivers can be used in addition to the Mesa RADV drivers
hardware.opengl.extraPackages = with pkgs; [
amdvlk
rocmPackages.clr.icd
];
environment.systemPackages = with pkgs; [
nvtop-amd
clinfo
rocmPackages.clr
];
}

5
hardware/default.nix Normal file
View File

@ -0,0 +1,5 @@
{
imports = [
./amdgpu.nix
];
}

View File

@ -51,7 +51,6 @@
btop btop
htop htop
tmux tmux
nvtop-amd
asciiquarium asciiquarium
pipes pipes
tldr tldr