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.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/hosts/toaster/amd.nix b/hosts/toaster/amd.nix
index 667fda1..54872a0 100644
--- a/hosts/toaster/amd.nix
+++ b/hosts/toaster/amd.nix
@@ -1,6 +1,13 @@
{ 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