blob: 5bb0f02902eb1c3a3135a183a865bf317e7f769c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{
lib,
config,
pkgs,
...
}: let
inherit (lib) mkIf;
cfg = config.amdgpu;
in {
config = mkIf cfg.enable {
# kernel modules
boot = {
initrd.kernelModules = ["amdgpu"];
kernelModules = ["kvm-amd"];
};
# AMD Anti-Lag
hardware.graphics.extraPackages = with pkgs; [
low-latency-layer
];
# Configuration
environment.variables = {
AMD_VULKAN_ICD = "RADV";
RADV_ANTILAG = "1";
LOW_LATENCY_LAYER = "1";
};
};
}
|