diff --git a/hosts/toaster/amd-new-pstate.nix b/hosts/toaster/amd-new-pstate.nix deleted file mode 100644 index 179cce3..0000000 --- a/hosts/toaster/amd-new-pstate.nix +++ /dev/null @@ -1,5 +0,0 @@ -{ ... }: -{ - # use new amd pstate driver - boot.kernelParams = [ "amd_pstate=active" ]; -} 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 diff --git a/hosts/toaster/default.nix b/hosts/toaster/default.nix index f9839e4..860b582 100644 --- a/hosts/toaster/default.nix +++ b/hosts/toaster/default.nix @@ -1,7 +1,6 @@ { pkgs, ... }: { imports = [ ./amd.nix - ./amd-new-pstate.nix ./hardware-configuration.nix # ./irc.nix ./network