summaryrefslogtreecommitdiff
path: root/hosts/toaster/amd.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/toaster/amd.nix')
-rw-r--r--hosts/toaster/amd.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/hosts/toaster/amd.nix b/hosts/toaster/amd.nix
new file mode 100644
index 0000000..b58784f
--- /dev/null
+++ b/hosts/toaster/amd.nix
@@ -0,0 +1,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
+ # ];
+ # };
+}