Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hardware support for Lenovo LOQ 15aph8 #1206

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

janwinkler1
Copy link

@janwinkler1 janwinkler1 commented Oct 25, 2024

Things done
  • Tested the changes in your own NixOS Configuration
  • Tested the changes end-to-end by using your fork of nixos-hardware and
    importing it via <nixos-hardware> or Flake input

services.thermald.enable = lib.mkDefault true;

# These will merge with user settings, so no mkDefault needed
boot.kernelModules = [ "kvm-amd" ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nixos-generate-config already does this:

Suggested change
boot.kernelModules = [ "kvm-amd" ];


# These will merge with user settings, so no mkDefault needed
boot.kernelModules = [ "kvm-amd" ];
boot.initrd.kernelModules = [ "amdgpu" ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
boot.initrd.kernelModules = [ "amdgpu" ];
hardware.amdgpu.initrd.enable = true;

boot.initrd.kernelModules = [ "amdgpu" ];

# Essential kernel parameters for AMD CPU
boot.kernelParams = [ "amd_pstate=active" ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be replaced by an import:

../../../common/cpu/amd/pstate.nix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants