26 lines
463 B
Nix
26 lines
463 B
Nix
{ lib, pkgs, config, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.hardware.gpu.amd;
|
|
in {
|
|
kernelParams = [ "amdgpu.ppfeaturemask=0xffffffff" ];
|
|
|
|
# Configure programs
|
|
programs = { corectrl.enable };
|
|
|
|
# Configure environment
|
|
environment = {
|
|
# Force radv
|
|
variables.AMD_VULKAN_ICD = "RADV";
|
|
};
|
|
# Hardware configs
|
|
hardware = {
|
|
# Enable OpenGL
|
|
opengl = {
|
|
enable = true;
|
|
driSupport = true;
|
|
driSupport32Bit = true;
|
|
};
|
|
};
|
|
}
|