diff --git a/lenovo/legion/15ich/README.md b/lenovo/legion/15ich/README.md new file mode 100644 index 0000000..3ef2c7e --- /dev/null +++ b/lenovo/legion/15ich/README.md @@ -0,0 +1,18 @@ +## Setup at the time of testing +``` +$ nix-info -m + - system: `"x86_64-linux"` + - host os: `Linux 5.15.90, NixOS, 22.11 (Raccoon), 22.11.2058.ce20e9ebe19` + - multi-user?: `yes` + - sandbox: `yes` + - version: `nix-env (Nix) 2.11.1` + - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos` + ``` + ``` + $ lspci +... +00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630] +... +01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev a1) +... +``` diff --git a/lenovo/legion/15ich/default.nix b/lenovo/legion/15ich/default.nix new file mode 100644 index 0000000..9fa70b7 --- /dev/null +++ b/lenovo/legion/15ich/default.nix @@ -0,0 +1,25 @@ +{ lib, ... }: + +{ + imports = [ + ../../../common/cpu/intel + ../../../common/gpu/nvidia/prime.nix + ../../../common/pc/laptop + ../../../common/pc/laptop/ssd + ../../../common/pc/laptop/hdd + ]; + + hardware = { + nvidia = { + modesetting.enable = lib.mkDefault true; + powerManagement.enable = lib.mkDefault true; + + prime = { + intelBusId = "PCI:0:2:0"; + nvidiaBusId = "PCI:1:0:0"; + }; + }; + }; + + services.thermald.enable = lib.mkDefault true; +}