File tree Expand file tree Collapse file tree 5 files changed +51
-0
lines changed Expand file tree Collapse file tree 5 files changed +51
-0
lines changed Original file line number Diff line number Diff line change @@ -221,6 +221,8 @@ See code for all available configurations.
221
221
| [ Lenovo Legion 5 Pro 16ach6h] ( lenovo/legion/16ach6h ) | ` <nixos-hardware/lenovo/legion/16ach6h> ` |
222
222
| [ Lenovo Legion 5 Pro 16ach6h (Hybrid)] ( lenovo/legion/16ach6h/hybrid ) | ` <nixos-hardware/lenovo/legion/16ach6h/hybrid> ` |
223
223
| [ Lenovo Legion 5 Pro 16ach6h (Nvidia)] ( lenovo/legion/16ach6h/nvidia ) | ` <nixos-hardware/lenovo/legion/16ach6h/nvidia> ` |
224
+ | [ Lenovo Legion 5 Pro 16arh7h (IGPU Only)] ( lenovo/legion/16arh7h/igpu-only ) | ` <nixos-hardware/lenovo/legion/16arh7h/igpu-only> ` |
225
+ | [ Lenovo Legion 5 Pro 16arh7h (Hybrid)] ( lenovo/legion/16arh7h/hybrid ) | ` <nixos-hardware/lenovo/legion/16arh7h/hybrid> ` |
224
226
| [ Lenovo Legion 7 16achg6 (Hybrid)] ( lenovo/legion/16achg6/hybrid ) | ` <nixos-hardware/lenovo/legion/16achg6/hybrid> ` |
225
227
| [ Lenovo Legion 7 16achg6 (Nvidia)] ( lenovo/legion/16achg6/nvidia ) | ` <nixos-hardware/lenovo/legion/16achg6/nvidia> ` |
226
228
| [ Lenovo Legion 7i Pro 16irx8h (Intel)] ( lenovo/legion/16irx8h ) | ` <nixos-hardware/lenovo/legion/16irx8h> ` |
Original file line number Diff line number Diff line change 161
161
lenovo-legion-16ach6h = import ./lenovo/legion/16ach6h ;
162
162
lenovo-legion-16ach6h-hybrid = import ./lenovo/legion/16ach6h/hybrid ;
163
163
lenovo-legion-16ach6h-nvidia = import ./lenovo/legion/16ach6h/nvidia ;
164
+ lenovo-legion-16arh7h-igpu-only = import ./lenovo/legion/16arh7h/igpu-only ;
165
+ lenovo-legion-16arh7h-hybrid = import ./lenovo/legion/16arh7h/hybrid ;
164
166
lenovo-legion-16achg6-hybrid = import ./lenovo/legion/16achg6/hybrid ;
165
167
lenovo-legion-16achg6-nvidia = import ./lenovo/legion/16achg6/nvidia ;
166
168
lenovo-legion-16aph8 = import ./lenovo/legion/16aph8 ;
Original file line number Diff line number Diff line change
1
+ # Useful Links
2
+
3
+ [ NixOS Wiki - Nvidia] ( https://wiki.nixos.org/wiki/NVIDIA )
4
+
Original file line number Diff line number Diff line change
1
+ {
2
+ config ,
3
+ lib ,
4
+ ...
5
+ } : {
6
+ imports = [
7
+ ../../../../common/cpu/amd
8
+ ../../../../common/cpu/amd/pstate.nix
9
+ ../../../../common/gpu/nvidia/prime.nix # prime offload
10
+ ../../../../common/gpu/nvidia/ampere # use open drivers
11
+ ../../../../common/pc/laptop
12
+ ../../../../common/pc/laptop/ssd
13
+ ] ;
14
+
15
+ boot . kernelModules = [ "amdgpu" ] ;
16
+ services . xserver . videoDrivers = [ "nvidia" ] ;
17
+
18
+ hardware = {
19
+ amdgpu . initrd . enable = false ;
20
+
21
+ nvidia = {
22
+ package = config . boot . kernelPackages . nvidiaPackages . latest ;
23
+ modesetting . enable = lib . mkDefault true ;
24
+ powerManagement . enable = lib . mkDefault true ;
25
+ powerManagement . finegrained = lib . mkDefault true ;
26
+ prime = {
27
+ amdgpuBusId = lib . mkDefault "PCI:52:0:0" ; # Hexadecimal 34:00.0
28
+ nvidiaBusId = lib . mkDefault "PCI:1:0:0" ; # Hexadecimal 01:00.0
29
+ } ;
30
+ } ;
31
+ } ;
32
+ }
Original file line number Diff line number Diff line change
1
+ # This will enable only the integrated AMD GPU, while disabling the dedicated Nvidia GPU
2
+ { ...} : {
3
+ imports = [
4
+ ../../../../common/cpu/amd
5
+ ../../../../common/cpu/amd/pstate.nix
6
+ ../../../../common/gpu/amd
7
+ ../../../../common/gpu/nvidia/disable.nix
8
+ ../../../../common/pc/laptop
9
+ ../../../../common/pc/laptop/ssd
10
+ ] ;
11
+ }
You can’t perform that action at this time.
0 commit comments