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

Adding the Legion Pro 7 16IRX9H model #1128

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

Conversation

felipelalli
Copy link

Initially, I simply copied it from the 16IRX8H, but I am still having issues with WiFi and sound (to be resolved).

Ref.: https://psref.lenovo.com/Product/Legion/Legion_Pro_7_16IRX9H

Description of changes

Adding the Legion Pro 7 16IRX9H model, copy/paste from 16IRX8H.

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

…from the 16IRX8H, but I am still having issues with WiFi and sound (to be resolved).

Ref.: https://psref.lenovo.com/Product/Legion/Legion_Pro_7_16IRX9H
@felipelalli felipelalli changed the title Adding the Legion Pro 7 16IRX9H model. Adding the Legion Pro 7 16IRX9H model Sep 15, 2024
Comment on lines +15 to +16
boot.initrd.kernelModules = ["nvidia"];
boot.extraModulePackages = [config.boot.kernelPackages.lenovo-legion-module config.boot.kernelPackages.nvidia_x11];
Copy link
Member

Choose a reason for hiding this comment

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

the legion module is needed, but the rest should be already covered by the nvidia module.

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 = ["nvidia"];
boot.extraModulePackages = [config.boot.kernelPackages.lenovo-legion-module config.boot.kernelPackages.nvidia_x11];
boot.extraModulePackages = [config.boot.kernelPackages.lenovo-legion-module];


hardware = {
nvidia = {
modesetting.enable = lib.mkDefault true;
Copy link
Member

Choose a reason for hiding this comment

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

Already enabled.

Suggested change
modesetting.enable = lib.mkDefault true;

@felipelalli
Copy link
Author

@Mic92 I just copied it from https://github.com/NixOS/nixos-hardware/blob/master/lenovo/legion/16irx8h/default.nix is that wrong too? Should I fix it too in this same PR?

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