From 9ec5f52ea235cdafa93f6fa69bf4183e8d8c1b23 Mon Sep 17 00:00:00 2001 From: Ulrik Strid Date: Thu, 23 Jun 2022 09:29:16 +0200 Subject: [PATCH] Add lenovo legion 7 16ITHg6 --- flake.nix | 1 + lenovo/legion/16ithg6/default.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 lenovo/legion/16ithg6/default.nix diff --git a/flake.nix b/flake.nix index df1c185..4dc9d22 100644 --- a/flake.nix +++ b/flake.nix @@ -52,6 +52,7 @@ lenovo-ideapad-z510 = import ./lenovo/ideapad/z510; lenovo-legion-15ach6 = import ./lenovo/legion/15ach6; lenovo-legion-15arh05h = import ./lenovo/legion/15arh05h; + lenovo-legion-16ithg6 = import ./lenovo/legion/16ithg6; 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/16ithg6/default.nix b/lenovo/legion/16ithg6/default.nix new file mode 100644 index 0000000..e63c165 --- /dev/null +++ b/lenovo/legion/16ithg6/default.nix @@ -0,0 +1,19 @@ +{ lib, pkgs, ... }: + +{ + imports = [ + ../../../common/cpu/intel + ../../../common/gpu/nvidia.nix + ../../../common/pc/laptop + ../../../common/pc/laptop/ssd + ]; + + # Specify bus id of Nvidia and Intel graphics. + hardware.nvidia.prime = { + intelBusId = "PCI:00:02:0"; + nvidiaBusId = "PCI:01:00:0"; + }; + + # Cooling management + services.thermald.enable = lib.mkDefault true; +}