Skip to content

Commit 829cfb2

Browse files
committed
Add hardware support for Lenovo LOQ 15aph8
1 parent e1cc1f6 commit 829cfb2

File tree

4 files changed

+43
-1
lines changed

4 files changed

+43
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ See code for all available configurations.
212212
| [Lenovo Legion Slim 7 Gen 7 (AMD)](lenovo/legion/16arha7/) | `<nixos-hardware/lenovo/legion/16arha7>` |
213213
| [Lenovo Legion T5 AMR5](lenovo/legion/t526amr5) | `<nixos-hardware/lenovo/legion/t526amr5>` |
214214
| [Lenovo Legion Y530 15ICH](lenovo/legion/15ich) | `<nixos-hardware/lenovo/legion/15ich>` |
215+
| [Lenovo LOQ 15APH8 (lenovo/loq/15aph8) | `<nixos-hardware/lenovo/loq/15aph8>` |
215216
| [Lenovo ThinkPad A475](lenovo/thinkpad/a475) | `<nixos-hardware/lenovo/thinkpad/a475>` |
216217
| [Lenovo ThinkPad E14 (AMD)](lenovo/thinkpad/e14/amd) | `<nixos-hardware/lenovo/thinkpad/e14/amd>` |
217218
| [Lenovo ThinkPad E14 (Intel)](lenovo/thinkpad/e14/intel) | `<nixos-hardware/lenovo/thinkpad/e14/intel>` |
@@ -340,7 +341,7 @@ See code for all available configurations.
340341
| [Supermicro X12SCZ-TLN4F](supermicro/x12scz-tln4f) | `<nixos-hardware/supermicro/x12scz-tln4f>` |
341342
| [System76 (generic)](system76) | `<nixos-hardware/system76>` |
342343
| [System76 Darter Pro 6](system76/darp6) | `<nixos-hardware/system76/darp6>` |
343-
| [System76 Gazelle 18](system76/gaze18) | `<nixos-hardware/system76/gaze18>` |
344+
| [System76 Gazelle 18](system76/gaze18) | `<nixos-hardware/system76/gaze18>` |
344345
| [System76 Galago Pro 5](system76/galp5-1650) | `<nixos-hardware/system76/galp5-1650>` |
345346
| [Toshiba Chromebook 2 `swanky`](toshiba/swanky) | `<nixos-hardware/toshiba/swanky>` |
346347
| [Tuxedo InfinityBook v4](tuxedo/infinitybook/v4) | `<nixos-hardware/tuxedo/infinitybook/v4>` |

flake.nix

+1
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150
lenovo-legion-16irx8h = import ./lenovo/legion/16irx8h;
151151
lenovo-legion-t526amr5 = import ./lenovo/legion/t526amr5;
152152
lenovo-legion-y530-15ich = import ./lenovo/legion/15ich;
153+
lenovo-loq-15aph8 = import ./lenovo/loq/15aph8;
153154
lenovo-thinkpad = import ./lenovo/thinkpad;
154155
lenovo-thinkpad-a475 = import ./lenovo/thinkpad/a475;
155156
lenovo-thinkpad-e14-amd = import ./lenovo/thinkpad/e14/amd;

lenovo/loq/15aph8/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Lenovo LOQ 15APH8
2+
3+
Tested on LOQ 15APH8 (82XT) with:
4+
- AMD Phoenix GPU
5+
- NVIDIA GeForce RTX 4050 Max-Q
6+
- AMD Phoenix1 integrated graphics
7+
8+
## Features Requiring Configuration
9+
For optimal power management, consider adding:
10+
11+
```nix
12+
services.power-profiles-daemon.enable = true;
13+
powerManagement.powertop.enable = true;
14+
```
15+

lenovo/loq/15aph8/default.nix

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{ lib, ...}: {
2+
imports = [
3+
../../../common/cpu/amd/pstate.nix
4+
../../../common/gpu/nvidia/prime.nix
5+
../../../common/gpu/nvidia/ada-lovelace
6+
../../../common/pc/laptop
7+
../../../common/pc/laptop/ssd
8+
];
9+
10+
hardware.nvidia.prime = {
11+
amdgpuBusId = lib.mkDefault "PCI:5:0:0";
12+
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
13+
};
14+
15+
# Power management - using mkDefault as these can be overridden
16+
hardware.nvidia.powerManagement.enable = lib.mkDefault true;
17+
hardware.nvidia.modesetting.enable = lib.mkDefault true;
18+
services.thermald.enable = lib.mkDefault true;
19+
20+
# These will merge with user settings, so no mkDefault needed
21+
hardware.amdgpu.initrd.enable = true;
22+
23+
}
24+
25+

0 commit comments

Comments
 (0)