mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-08 11:36:10 +01:00
Add 16iah7h
This commit is contained in:
parent
db030f62a4
commit
9b86fa5d67
3 changed files with 33 additions and 0 deletions
31
lenovo/legion/16iah7h/default.nix
Normal file
31
lenovo/legion/16iah7h/default.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
../../../common/cpu/intel
|
||||
../../../common/gpu/nvidia/prime.nix
|
||||
../../../common/gpu/nvidia/ampere
|
||||
../../../common/pc/laptop
|
||||
../../../common/pc/ssd
|
||||
../../../common/hidpi.nix
|
||||
];
|
||||
|
||||
boot.extraModulePackages = [config.boot.kernelPackages.lenovo-legion-module];
|
||||
|
||||
hardware = {
|
||||
nvidia = {
|
||||
powerManagement.enable = lib.mkDefault true;
|
||||
|
||||
prime = {
|
||||
intelBusId = "PCI:00:02:0";
|
||||
nvidiaBusId = "PCI:01:00:0";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.thermald.enable = lib.mkDefault true;
|
||||
|
||||
services.xserver.dpi = 189;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue