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