config for nvidia on thinkpad hopefully

This commit is contained in:
twoneis 2024-06-10 00:21:42 +02:00
parent ffacc99a42
commit 7c08c944d7

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: {
{ config, pkgs, ... }: {
imports = [
./options.nix
];
@ -59,6 +59,19 @@
enableAllFirmware = true;
cpu.intel.updateMicrocode = true;
nvidia = {
modesetting.enable = true;
nvidiaSettings = false;
package = config.boot.kernelPackages.nvidiaPackages.legacy_470;
prime = {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
sync.enable = true;
};
};
opengl = {
enable = true;
driSupport = true;