mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-12-27 23:58:49 +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 ];
|
|
};
|
|
}
|