summaryrefslogtreecommitdiff
path: root/hosts/toaster/amd.nix
blob: b58784f8231be85b133a9651991904331b055c83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ ... }:
{
  boot.initrd.kernelModules = [ "amdgpu" ];

  boot.kernelParams = [
    # use new amd pstate driver
    "amd_pstate=active"
    # fix flicker
    "amdgpu.dcdebugmask=0x10"
  ];

  #  hardware.graphics = {
  #    extraPackages = with pkgs; [
  #      rocm-opencl-icd
  #      rocm-opencl-runtime
  #      amdvlk
  #    ];
  #    extraPackages32 = with pkgs; [
  #      driversi686Linux.amdvlk
  #    ];
  #  };
}