mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-05 07:23:29 +01:00
fix lenovo thinkpad e470
This commit is contained in:
1 parent
9bc1f316a6
commit
b175484c5a
1 file changed
+9
-1
@@ -4,8 +4,16 @@
|
|||||||
imports = [
|
imports = [
|
||||||
../.
|
../.
|
||||||
../../../common/cpu/intel/kaby-lake
|
../../../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;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user