File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ See code for all available configurations.
232
232
| [ Lenovo Legion 5 Pro 16ach6h (Nvidia)] ( lenovo/legion/16ach6h/nvidia ) | ` <nixos-hardware/lenovo/legion/16ach6h/nvidia> ` |
233
233
| [ Lenovo Legion 5 Pro 16arh7h (IGPU Only)] ( lenovo/legion/16arh7h/igpu-only ) | ` <nixos-hardware/lenovo/legion/16arh7h/igpu-only> ` |
234
234
| [ Lenovo Legion 5 Pro 16arh7h (Hybrid)] ( lenovo/legion/16arh7h/hybrid ) | ` <nixos-hardware/lenovo/legion/16arh7h/hybrid> ` |
235
+ | [ Legion Legion 5 Pro 16IAH7H (Intel)] ( lenovo/legion/16iah7h/ ) | ` <nixos-hardware/lenovo/legion/16iah7h> ` |
235
236
| [ Lenovo Legion 7 16achg6 (Hybrid)] ( lenovo/legion/16achg6/hybrid ) | ` <nixos-hardware/lenovo/legion/16achg6/hybrid> ` |
236
237
| [ Lenovo Legion 7 16achg6 (Nvidia)] ( lenovo/legion/16achg6/nvidia ) | ` <nixos-hardware/lenovo/legion/16achg6/nvidia> ` |
237
238
| [ Lenovo Legion 7i Pro 16irx8h (Intel)] ( lenovo/legion/16irx8h ) | ` <nixos-hardware/lenovo/legion/16irx8h> ` |
Original file line number Diff line number Diff line change 180
180
lenovo-legion-16achg6-nvidia = import ./lenovo/legion/16achg6/nvidia ;
181
181
lenovo-legion-16aph8 = import ./lenovo/legion/16aph8 ;
182
182
lenovo-legion-16arha7 = import ./lenovo/legion/16arha7 ;
183
+ lenovo-legion-16iah7h = import ./lenovo/legion/16iah7h ;
183
184
lenovo-legion-16ithg6 = import ./lenovo/legion/16ithg6 ;
184
185
lenovo-legion-16irx8h = import ./lenovo/legion/16irx8h ;
185
186
lenovo-legion-16irx9h = import ./lenovo/legion/16irx9h ;
Original file line number Diff line number Diff line change
1
+ {
2
+ lib ,
3
+ config ,
4
+ ...
5
+ } : {
6
+ imports = [
7
+ ../../../common/cpu/intel
8
+ ../../../common/gpu/nvidia/prime.nix
9
+ ../../../common/gpu/nvidia/ampere
10
+ ../../../common/pc/laptop
11
+ ../../../common/pc/ssd
12
+ ../../../common/hidpi.nix
13
+ ] ;
14
+
15
+ boot . extraModulePackages = [ config . boot . kernelPackages . lenovo-legion-module ] ;
16
+
17
+ hardware = {
18
+ nvidia = {
19
+ powerManagement . enable = lib . mkDefault true ;
20
+
21
+ prime = {
22
+ intelBusId = "PCI:00:02:0" ;
23
+ nvidiaBusId = "PCI:01:00:0" ;
24
+ } ;
25
+ } ;
26
+ } ;
27
+
28
+ services . thermald . enable = lib . mkDefault true ;
29
+
30
+ services . xserver . dpi = 189 ;
31
+ }
You can’t perform that action at this time.
0 commit comments