From 6cb471ea808da3b05a02f874333070146abb81a1 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Sun, 5 Apr 2026 13:06:08 -0300 Subject: [PATCH] chore(shared/nixos): configure amd gpu for gaming performance --- shared/nixos/hardware.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/shared/nixos/hardware.nix b/shared/nixos/hardware.nix index 184f32f..a6be754 100644 --- a/shared/nixos/hardware.nix +++ b/shared/nixos/hardware.nix @@ -6,6 +6,14 @@ "amdgpu" ]; + # Tune power management + boot.extraModprobeConfig = '' + options amdgpu runpm=0 aspm=0 bapm=0 + ''; + services.udev.extraRules = '' + SUBSYSTEM=="drm", DRIVERS=="amdgpu", ATTR{device/power_dpm_force_performance_level}="high" + ''; + # Enable Bluetooth hardware.bluetooth = { enable = true;