My use case is I am trying to run Davinci Resolve, and it complains about an unrecognized GPU (mine is RX 6800S), so I am trying to see if it works with that driver.
Another thing is that wiki doesn’t talk about it, but I think it should. So far I have tried this with no success:
hardware.opengl = {
extraPackages = with pkgs; [ linuxPackages.amdgpu-pro ];
};
boot.extraModulePackages = with config.boot.kernelPackages; [
amdgpu-pro
];
environment.systemPackages = with pkgs; [
linuxPackages.amdgpu-pro
];
# services.xserver.videoDrivers = ["amdgpu-pro"];
# ERROR: nixos-hardware.nixosModules.ga402 requires kernel version >=6.2 to ensure that fans are correctly managed. Please upgrade nixpkgs for this system.
Running glxinfo | grep "OpenGL vendor string" | cut -f2 -d":" | xargs
returns AMD
(source).
services.xserver.videoDrivers
seems to try to downgrade the kernel.
Anyone managed to make it run?