mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-23 08:43:55 -05:00
29 lines
535 B
Nix
29 lines
535 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}: {
|
||
|
config = lib.mkIf config.ar.hardware.gpu.amd {
|
||
|
boot = {
|
||
|
initrd.kernelModules = ["amdgpu"];
|
||
|
|
||
|
kernelModules = ["amdgpu"];
|
||
|
# Disable AMD Backlight Management.
|
||
|
# ABM severely degrades display quality for miniscule power efficiency gains.
|
||
|
kernelParams = ["amdgpu.abmlevel=0"];
|
||
|
};
|
||
|
|
||
|
hardware.amdgpu = {
|
||
|
initrd.enable = true;
|
||
|
|
||
|
amdvlk = {
|
||
|
enable = true;
|
||
|
support32Bit.enable = true;
|
||
|
};
|
||
|
|
||
|
opencl.enable = true;
|
||
|
};
|
||
|
};
|
||
|
}
|