From b175484c5ad7379b00e90b97fb182bb9de07e19d Mon Sep 17 00:00:00 2001 From: Vincent Cui Date: Wed, 23 Sep 2020 20:08:23 +0200 Subject: [PATCH] fix lenovo thinkpad e470 --- lenovo/thinkpad/e470/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lenovo/thinkpad/e470/default.nix b/lenovo/thinkpad/e470/default.nix index d7a60c1..6920ca5 100644 --- a/lenovo/thinkpad/e470/default.nix +++ b/lenovo/thinkpad/e470/default.nix @@ -4,8 +4,16 @@ imports = [ ../. ../../../common/cpu/intel/kaby-lake + ../../../common/gpu/nvidia.nix ]; - # see https://github.com/NixOS/nixpkgs/issues/69289 + hardware.nvidia.prime = { + # Bus ID of the Intel GPU. + intelBusId = lib.mkDefault "PCI:0:2:0"; + + # Bus ID of the NVIDIA GPU. + nvidiaBusId = lib.mkDefault "PCI:1:0:0"; + }; + boot.kernelPackages = pkgs.linuxPackages_latest; }