mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-08 19:46:10 +01:00
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:
parent
170ff93c86
commit
ba70d20716
4 changed files with 27 additions and 0 deletions
7
lenovo/thinkpad/p14s/intel/gen2/README
Normal file
7
lenovo/thinkpad/p14s/intel/gen2/README
Normal 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.
|
||||
18
lenovo/thinkpad/p14s/intel/gen2/default.nix
Normal file
18
lenovo/thinkpad/p14s/intel/gen2/default.nix
Normal 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" ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue