From 72d490399892ad8f53f039056c27940a397ee6b8 Mon Sep 17 00:00:00 2001 From: Nicholas Sielicki Date: Sun, 6 Mar 2022 19:43:55 +0000 Subject: [PATCH] add lenovo legion 5 15ARH05H --- README.md | 1 + flake.nix | 1 + lenovo/legion/15arh05h/default.nix | 20 ++++++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 lenovo/legion/15arh05h/default.nix diff --git a/README.md b/README.md index b9f5ce7..9b2338a 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,7 @@ See code for all available configurations. | [HP Elitebook 2560p](hp/elitebook/2560p) | `` | | [Intel NUC 8i7BEH](intel/nuc/8i7beh/) | `` | | [Lenovo IdeaPad Z510](lenovo/ideapad/z510) | `` | +| [Lenovo Legion 5 15arh05h](lenovo/legion/15arh05h) | `` | | [Lenovo ThinkPad E14 (AMD)](lenovo/thinkpad/e14/amd) | `` | | [Lenovo ThinkPad E14 (Intel)](lenovo/thinkpad/e14/intel) | `` | | [Lenovo ThinkPad E470](lenovo/thinkpad/e470) | `` | diff --git a/flake.nix b/flake.nix index 3669436..f8b88d4 100644 --- a/flake.nix +++ b/flake.nix @@ -45,6 +45,7 @@ hp-elitebook-2560p = import ./hp/elitebook/2560p; intel-nuc-8i7beh = import ./intel/nuc/8i7beh; lenovo-ideapad-z510 = import ./lenovo/ideapad/z510; + lenovo-legion-15arh05h = import ./lenovo/legion/15arh05h; lenovo-thinkpad = import ./lenovo/thinkpad; lenovo-thinkpad-e14-amd = import ./lenovo/thinkpad/e14/amd; lenovo-thinkpad-e14-intel = import ./lenovo/thinkpad/e14/intel; diff --git a/lenovo/legion/15arh05h/default.nix b/lenovo/legion/15arh05h/default.nix new file mode 100644 index 0000000..1662748 --- /dev/null +++ b/lenovo/legion/15arh05h/default.nix @@ -0,0 +1,20 @@ +{ lib, pkgs, ... }: + +{ + imports = [ + ../../../common/cpu/amd + ../../../common/gpu/nvidia.nix + ../../../common/pc/laptop + ../../../common/pc/laptop/ssd + ]; + + # Specify bus id of Nvidia and Intel graphics. + hardware.nvidia.prime = { + amdgpuBusId = "PCI:6:0:0"; + nvidiaBusId = "PCI:1:0:0"; + }; + + # Cooling management + services.thermald.enable = lib.mkDefault true; + +}