Add Lenovo ThinkPad P14s Intel Gen 2 profile

Adds hardware profile for Lenovo ThinkPad P14s Intel Gen 2 with:
- Intel Tiger Lake CPU support
- NVIDIA Turing GPU with PRIME configuration
- Suspend-to-RAM S3 sleep state configuration
This commit is contained in:
Borja Rojo Ilvento 2025-09-30 21:28:37 +02:00 committed by Jörg Thalheim
parent 170ff93c86
commit ba70d20716
4 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,7 @@
# Lenovo ThinkPad P14s Intel Gen 2
Much of the extraneous settings are filled out using the [wiki](https://wiki.nixos.org/wiki/NVIDIA#Hybrid_graphics_with_PRIME), which gives guidance on how to determine the correct PCI bus IDs to assign, aswell as the note to include the `modesetting` driver in `services.xserver.videoDrivers`.
## BIOS Settings to adjust
For suspending to RAM to work, set Config -> Power -> Sleep State to "Linux S3" in EFI.

View file

@ -0,0 +1,18 @@
{
imports = [
../../../../../common/gpu/nvidia/prime.nix
../../../../../common/gpu/nvidia/turing
../../../../../common/cpu/intel/tiger-lake
../../../../../common/pc/laptop
../../../../../common/pc/ssd
../../../../../common/pc
../.
];
hardware.nvidia.prime = {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
services.xserver.videoDrivers = [ "modesetting" ];
}