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

feat: add Lenovo ThinkPad P16s Intel Gen 2 #1413

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

yajo
Copy link

@yajo yajo commented Mar 13, 2025

@moduon MT-9339

Description of changes
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

@yajo yajo force-pushed the p16s branch 2 times, most recently from bca0b9f to 3158e7c Compare March 13, 2025 11:28
@yajo yajo marked this pull request as ready for review March 13, 2025 11:53
@@ -0,0 +1,8 @@
{modulesPath, lib, ...}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
Copy link
Member

Choose a reason for hiding this comment

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

nixos-hardware depends on nixos-generate-config. We try to not replace parts that can be auto-generated.

Suggested change
(modulesPath + "/installer/scan/not-detected.nix")

Copy link
Author

Choose a reason for hiding this comment

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

Huh, weird. I assumed that if using this repo, I wouldn't need to depend on nixos-generate-config.

OK let me fix that.

Comment on lines +10 to +18
boot.initrd.availableKernelModules = [
"nvme"
"sd_mod"
"thunderbolt"
"usb_storage"
"usbhid"
"xhci_pci"
];
boot.kernelModules = ["kvm-intel"];
Copy link
Member

Choose a reason for hiding this comment

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

Same as above:

Suggested change
boot.initrd.availableKernelModules = [
"nvme"
"sd_mod"
"thunderbolt"
"usb_storage"
"usbhid"
"xhci_pci"
];
boot.kernelModules = ["kvm-intel"];

Copy link
Author

Choose a reason for hiding this comment

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

However, nixos-generate-config only gets this:

  boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" ];

Should I just remove those?

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