zaneyos/config/system/amd-opengl.nix

14 lines
349 B
Nix
Raw Normal View History

{ 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 ];
};
}