mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-11-23 07:03:07 +01:00
14 lines
329 B
Nix
14 lines
329 B
Nix
{ pkgs, config, lib, gpuType, ... }:
|
|
|
|
lib.mkIf ("${gpuType}" == "amd") {
|
|
# OpenGL
|
|
hardware.opengl = {
|
|
enable = true;
|
|
driSupport = true;
|
|
driSupport32Bit = true;
|
|
## amdvlk: an open-source Vulkan driver from AMD
|
|
extraPackages = [ pkgs.amdvlk ];
|
|
extraPackages32 = [ pkgs.driversi686Linux.amdvlk ];
|
|
};
|
|
}
|