File tree Expand file tree Collapse file tree 4 files changed +53
-0
lines changed
common/gpu/nvidia/blackwell Expand file tree Collapse file tree 4 files changed +53
-0
lines changed Original file line number Diff line number Diff line change @@ -264,6 +264,7 @@ See code for all available configurations.
264264| [ Lenovo Legion 7 16achg6 (Nvidia)] ( lenovo/legion/16achg6/nvidia ) | ` <nixos-hardware/lenovo/legion/16achg6/nvidia> ` | ` lenovo-legion-16achg6-nvidia ` |
265265| [ Lenovo Legion 7i Pro 16irx8h (Intel)] ( lenovo/legion/16irx8h ) | ` <nixos-hardware/lenovo/legion/16irx8h> ` | ` lenovo-legion-16irx8h ` |
266266| [ Lenovo Legion 7 Pro 16irx9h (Intel)] ( lenovo/legion/16irx9h ) | ` <nixos-hardware/lenovo/legion/16irx9h> ` | ` lenovo-legion-16irx9h ` |
267+ | [ Lenovo Legion Pro 7 16iax10h (Intel)] ( lenovo/legion/16iax10h ) | ` <nixos-hardware/lenovo/legion/16iax10h> ` | ` lenovo-legion-16iax10h ` |
267268| [ Lenovo Legion Slim 5] ( lenovo/legion/16aph8/ ) | ` <nixos-hardware/lenovo/legion/16aph8> ` | ` lenovo-legion-16aph8 ` |
268269| [ Lenovo Legion Slim 7 Gen 7 (AMD)] ( lenovo/legion/16arha7/ ) | ` <nixos-hardware/lenovo/legion/16arha7> ` | ` lenovo-legion-16arha7 ` |
269270| [ Lenovo Legion T5 AMR5] ( lenovo/legion/t526amr5 ) | ` <nixos-hardware/lenovo/legion/t526amr5> ` | ` lenovo-legion-t526amr5 ` |
Original file line number Diff line number Diff line change 1+ { lib , config , ... } :
2+ let
3+ nvidiaPackage = config . hardware . nvidia . package ;
4+ in
5+ {
6+ imports = [ ../. ] ;
7+
8+ # enable the open source drivers if the package supports it
9+ hardware . nvidia . open = lib . mkOverride 990 ( nvidiaPackage ? open && nvidiaPackage ? firmware ) ;
10+ }
Original file line number Diff line number Diff line change 230230 lenovo-legion-16ithg6 = import ./lenovo/legion/16ithg6 ;
231231 lenovo-legion-16irx8h = import ./lenovo/legion/16irx8h ;
232232 lenovo-legion-16irx9h = import ./lenovo/legion/16irx9h ;
233+ lenovo-legion-16iax10h = import ./lenovo/legion/16iax10h ;
233234 lenovo-legion-t526amr5 = import ./lenovo/legion/t526amr5 ;
234235 lenovo-legion-y530-15ich = import ./lenovo/legion/15ich ;
235236 lenovo-thinkpad = import ./lenovo/thinkpad ;
Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ config ,
4+ ...
5+ } :
6+ {
7+ imports = [
8+ ../../../common/cpu/intel
9+ ../../../common/gpu/nvidia/prime.nix
10+ ../../../common/gpu/nvidia/blackwell
11+ ../../../common/pc/laptop
12+ ../../../common/pc/ssd
13+ ../../../common/hidpi.nix
14+ ] ;
15+
16+ boot . extraModulePackages = [ config . boot . kernelPackages . lenovo-legion-module ] ;
17+
18+ hardware = {
19+ nvidia = {
20+ powerManagement . enable = lib . mkDefault true ;
21+ #
22+ prime = {
23+ intelBusId = "PCI:00:02:0" ;
24+ nvidiaBusId = "PCI:02:00:0" ;
25+ } ;
26+ } ;
27+ } ;
28+
29+ # Sound speaker fix, see #1039
30+ boot . extraModprobeConfig = ''
31+ options snd-hda-intel model=auto
32+ '' ;
33+
34+ boot . blacklistedKernelModules = [ "snd_soc_avs" ] ;
35+
36+ # Cooling management
37+ services . thermald . enable = lib . mkDefault true ;
38+
39+ # √(2560² + 1600²) px / 16 in ≃ 189 dpi
40+ services . xserver . dpi = 189 ;
41+ }
You can’t perform that action at this time.
0 commit comments