From 9b86fa5d67f0192d8f2f8d3fcd8a019664b41c55 Mon Sep 17 00:00:00 2001 From: Biaogo <481622717@qq.com> Date: Mon, 16 Jun 2025 22:11:03 +0800 Subject: [PATCH] Add 16iah7h --- README.md | 1 + flake.nix | 1 + lenovo/legion/16iah7h/default.nix | 31 +++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 lenovo/legion/16iah7h/default.nix diff --git a/README.md b/README.md index 836284c5..758c2ab2 100644 --- a/README.md +++ b/README.md @@ -232,6 +232,7 @@ See code for all available configurations. | [Lenovo Legion 5 Pro 16ach6h (Nvidia)](lenovo/legion/16ach6h/nvidia) | `` | | [Lenovo Legion 5 Pro 16arh7h (IGPU Only)](lenovo/legion/16arh7h/igpu-only) | `` | | [Lenovo Legion 5 Pro 16arh7h (Hybrid)](lenovo/legion/16arh7h/hybrid) | `` | +| [Legion Legion 5 Pro 16IAH7H (Intel)](lenovo/legion/16iah7h/) | `` | | [Lenovo Legion 7 16achg6 (Hybrid)](lenovo/legion/16achg6/hybrid) | `` | | [Lenovo Legion 7 16achg6 (Nvidia)](lenovo/legion/16achg6/nvidia) | `` | | [Lenovo Legion 7i Pro 16irx8h (Intel)](lenovo/legion/16irx8h) | `` | diff --git a/flake.nix b/flake.nix index a804dd8e..389be153 100644 --- a/flake.nix +++ b/flake.nix @@ -180,6 +180,7 @@ lenovo-legion-16achg6-nvidia = import ./lenovo/legion/16achg6/nvidia; lenovo-legion-16aph8 = import ./lenovo/legion/16aph8; lenovo-legion-16arha7 = import ./lenovo/legion/16arha7; + lenovo-legion-16iah7h = import ./lenovo/legion/16iah7h; lenovo-legion-16ithg6 = import ./lenovo/legion/16ithg6; lenovo-legion-16irx8h = import ./lenovo/legion/16irx8h; lenovo-legion-16irx9h = import ./lenovo/legion/16irx9h; diff --git a/lenovo/legion/16iah7h/default.nix b/lenovo/legion/16iah7h/default.nix new file mode 100644 index 00000000..cf1fe5f8 --- /dev/null +++ b/lenovo/legion/16iah7h/default.nix @@ -0,0 +1,31 @@ +{ + lib, + config, + ... +}: { + imports = [ + ../../../common/cpu/intel + ../../../common/gpu/nvidia/prime.nix + ../../../common/gpu/nvidia/ampere + ../../../common/pc/laptop + ../../../common/pc/ssd + ../../../common/hidpi.nix + ]; + + boot.extraModulePackages = [config.boot.kernelPackages.lenovo-legion-module]; + + hardware = { + nvidia = { + powerManagement.enable = lib.mkDefault true; + + prime = { + intelBusId = "PCI:00:02:0"; + nvidiaBusId = "PCI:01:00:0"; + }; + }; + }; + + services.thermald.enable = lib.mkDefault true; + + services.xserver.dpi = 189; +}