blob: cfaa974d1d071bc8a469e51e2308ddf34f1d52fb (
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
30
31
|
{
pkgs,
...
}:
{
hardware.graphics = {
enable = true;
enable32Bit = true;
# use amdvlk in conjunction with amdgpu,
# applications can choose which one to use.
extraPackages = with pkgs; [ amdvlk ];
extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ];
};
services.xserver.videoDrivers = [ "amdgpu" ];
hardware.amdgpu = {
opencl.enable = true;
initrd.enable = true;
overdrive.enable = false;
legacySupport.enable = false;
};
services.lact.enable = true;
environment.systemPackages = with pkgs; [
lact
clinfo
];
}
|