1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-27 05:19:43 +01:00

Add hardware support for Lenovo LOQ 15aph8

This commit is contained in:
Jan Winkler 2024-10-25 14:50:12 +02:00
parent e1cc1f6483
commit 50e35e3bb5
4 changed files with 39 additions and 1 deletions

View file

@ -212,6 +212,7 @@ See code for all available configurations.
| [Lenovo Legion Slim 7 Gen 7 (AMD)](lenovo/legion/16arha7/) | `<nixos-hardware/lenovo/legion/16arha7>` | | [Lenovo Legion Slim 7 Gen 7 (AMD)](lenovo/legion/16arha7/) | `<nixos-hardware/lenovo/legion/16arha7>` |
| [Lenovo Legion T5 AMR5](lenovo/legion/t526amr5) | `<nixos-hardware/lenovo/legion/t526amr5>` | | [Lenovo Legion T5 AMR5](lenovo/legion/t526amr5) | `<nixos-hardware/lenovo/legion/t526amr5>` |
| [Lenovo Legion Y530 15ICH](lenovo/legion/15ich) | `<nixos-hardware/lenovo/legion/15ich>` | | [Lenovo Legion Y530 15ICH](lenovo/legion/15ich) | `<nixos-hardware/lenovo/legion/15ich>` |
| [Lenovo LOQ 15APH8 (lenovo/loq/15aph8) | `<nixos-hardware/lenovo/loq/15aph8>` |
| [Lenovo ThinkPad A475](lenovo/thinkpad/a475) | `<nixos-hardware/lenovo/thinkpad/a475>` | | [Lenovo ThinkPad A475](lenovo/thinkpad/a475) | `<nixos-hardware/lenovo/thinkpad/a475>` |
| [Lenovo ThinkPad E14 (AMD)](lenovo/thinkpad/e14/amd) | `<nixos-hardware/lenovo/thinkpad/e14/amd>` | | [Lenovo ThinkPad E14 (AMD)](lenovo/thinkpad/e14/amd) | `<nixos-hardware/lenovo/thinkpad/e14/amd>` |
| [Lenovo ThinkPad E14 (Intel)](lenovo/thinkpad/e14/intel) | `<nixos-hardware/lenovo/thinkpad/e14/intel>` | | [Lenovo ThinkPad E14 (Intel)](lenovo/thinkpad/e14/intel) | `<nixos-hardware/lenovo/thinkpad/e14/intel>` |

View file

@ -150,6 +150,7 @@
lenovo-legion-16irx8h = import ./lenovo/legion/16irx8h; lenovo-legion-16irx8h = import ./lenovo/legion/16irx8h;
lenovo-legion-t526amr5 = import ./lenovo/legion/t526amr5; lenovo-legion-t526amr5 = import ./lenovo/legion/t526amr5;
lenovo-legion-y530-15ich = import ./lenovo/legion/15ich; lenovo-legion-y530-15ich = import ./lenovo/legion/15ich;
lenovo-loq-15aph8 = import ./lenovo/loq/15aph8;
lenovo-thinkpad = import ./lenovo/thinkpad; lenovo-thinkpad = import ./lenovo/thinkpad;
lenovo-thinkpad-a475 = import ./lenovo/thinkpad/a475; lenovo-thinkpad-a475 = import ./lenovo/thinkpad/a475;
lenovo-thinkpad-e14-amd = import ./lenovo/thinkpad/e14/amd; lenovo-thinkpad-e14-amd = import ./lenovo/thinkpad/e14/amd;

View file

@ -0,0 +1,14 @@
# Lenovo LOQ 15APH8
Tested on LOQ 15APH8 (82XT) with:
- AMD Phoenix GPU
- NVIDIA GeForce RTX 4050 Max-Q
- AMD Phoenix1 integrated graphics
## Features Requiring Configuration
For optimal power management, consider adding:
```nix
services.power-profiles-daemon.enable = true;
powerManagement.powertop.enable = true;
```

View file

@ -0,0 +1,22 @@
{ lib, ...}: {
imports = [
../../../common/cpu/amd/pstate.nix
../../../common/gpu/nvidia/prime.nix
../../../common/gpu/nvidia/ada-lovelace
../../../common/pc/laptop
../../../common/pc/laptop/ssd
];
hardware.nvidia.prime = {
amdgpuBusId = lib.mkDefault "PCI:5:0:0";
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
};
# Power management - using mkDefault as these can be overridden
hardware.nvidia.powerManagement.enable = lib.mkDefault true;
hardware.nvidia.modesetting.enable = lib.mkDefault true;
services.thermald.enable = lib.mkDefault true;
# These will merge with user settings, so no mkDefault needed
hardware.amdgpu.initrd.enable = true;
}