mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-04 01:07:14 +08:00
lenovo/t14-intel-gen1(-nvidia): init
init configuration for t14 intel gen1 with and without nvidia dedicated graphics card ref: https://thinkwiki.de/T14_Gen_1_(Intel)
This commit is contained in:
28
lenovo/thinkpad/t14/intel/gen1/nvidia/default.nix
Normal file
28
lenovo/thinkpad/t14/intel/gen1/nvidia/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ lib, config, ... }:
|
||||
{
|
||||
imports = [
|
||||
../../../../../../common/gpu/nvidia/pascal
|
||||
../../../../../../common/gpu/nvidia/prime-sync.nix
|
||||
|
||||
../.
|
||||
];
|
||||
hardware = {
|
||||
graphics = {
|
||||
enable = lib.mkDefault true;
|
||||
enable32Bit = lib.mkDefault true;
|
||||
};
|
||||
nvidia = {
|
||||
powerManagement.enable = lib.mkDefault true;
|
||||
modesetting.enable = lib.mkDefault true;
|
||||
|
||||
dynamicBoost.enable = lib.mkForce false; # Dynamic boost is not supported on Pascal architeture
|
||||
prime = {
|
||||
# 00:02.0 VGA compatible controller: Intel Corporation CometLake-U GT2 [UHD Graphics] (rev 02)
|
||||
intelBusId = lib.mkDefault "PCI:0:2:0";
|
||||
# 2d:00.0 3D controller: NVIDIA Corporation GP108M [GeForce MX330] (rev a1)
|
||||
nvidiaBusId = lib.mkDefault "PCI:45:0:0";
|
||||
};
|
||||
};
|
||||
};
|
||||
services.thermald.enable = lib.mkDefault true;
|
||||
}
|
||||
Reference in New Issue
Block a user