mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-05 01:37:24 +08:00
Merge pull request #1615 from borja-rojo-ilvento/lenovo-thinkpad-p14s-intel-gen2
Lenovo thinkpad p14s intel gen2
This commit is contained in:
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" ];
|
||||
}
|
||||
Reference in New Issue
Block a user