amdgpu: never buy amd laptop ever again

This commit is contained in:
Grisha Shipunov 2025-01-05 23:42:40 +01:00
parent 5b8fa1a5e8
commit ee3c877d5b
3 changed files with 7 additions and 6 deletions

View file

@ -1,5 +0,0 @@
{ ... }:
{
# use new amd pstate driver
boot.kernelParams = [ "amd_pstate=active" ];
}

View file

@ -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

View file

@ -1,7 +1,6 @@
{ pkgs, ... }: {
imports = [
./amd.nix
./amd-new-pstate.nix
./hardware-configuration.nix
# ./irc.nix
./network