summaryrefslogtreecommitdiff
path: root/hosts/toaster/amd.nix
blob: 637f15d15856b1222c9b5c0772c019fc487ee3b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ pkgs, config, ... }:
{
  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
  #    ];
  #  };
}