{ pkgs, config, ... }: { boot.initrd.kernelModules = [ "amdgpu" ]; boot.kernelParams = [ # use new amd pstate driver "amd_pstate=active" # try to fix weird flickering "amdgpu.sg_display=0" ]; # hardware.graphics = { # extraPackages = with pkgs; [ # rocm-opencl-icd # rocm-opencl-runtime # amdvlk # ]; # extraPackages32 = with pkgs; [ # driversi686Linux.amdvlk # ]; # }; }