mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-05 23:43:30 +01:00
Add support for P1 Gen 5 intel cpu architecture at `lenovo/thinkpad/p1/gen5`. The `gen5/nvidia` opt-in GPU imports from there. Add p1-gen5 to flake and README.
25 lines
519 B
Nix
25 lines
519 B
Nix
{ lib, ... }:
|
|
{
|
|
imports = [
|
|
../.
|
|
../../../../../common/gpu/nvidia/ampere
|
|
../../../../../common/gpu/nvidia/prime.nix
|
|
];
|
|
|
|
hardware = {
|
|
graphics = {
|
|
enable = lib.mkDefault true;
|
|
enable32Bit = lib.mkDefault true;
|
|
};
|
|
nvidia = {
|
|
modesetting.enable = lib.mkDefault true;
|
|
prime = {
|
|
# Bus ID of the Intel GPU.
|
|
intelBusId = lib.mkDefault "PCI:0:2:0";
|
|
# Bus ID of the NVIDIA GPU.
|
|
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
|
|
};
|
|
};
|
|
};
|
|
}
|