zaneyos/config/system/amd-opengl.nix
2024-01-20 22:23:17 -06:00

14 lines
349 B
Nix

{ pkgs, config, lib, deviceProfile, ... }:
lib.mkIf ("${deviceProfile}" == "amd-desktop") {
# OpenGL
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
## amdvlk: an open-source Vulkan driver from AMD
extraPackages = [ pkgs.amdvlk ];
extraPackages32 = [ pkgs.driversi686Linux.amdvlk ];
};
}