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

  boot.kernelParams = [
    # use new amd pstate driver
    "amd_pstate=active"
  ];

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