fix graphics support for nvidia + intel graphics

This commit is contained in:
2024-10-18 00:05:37 +02:00
parent 18b10f3929
commit e9302c7c27
2 changed files with 16 additions and 2 deletions

View File

@ -9,4 +9,18 @@
];
networking.hostName = "nixos-fixe";
networking.firewall.allowedTCPPorts = [ 5900 ];
networking.firewall.allowedUDPPorts = [ 5900 ];
hardware.cpu.intel.updateMicrocode = true;
services.xserver.videoDrivers = [ "modesetting" "intel"];
hardware.graphics.extraPackages = [ pkgs.mesa.drivers ];
hardware.nvidia = {
open = true;
prime.nvidiaBusId = "PCI:1:0:0";
prime.intelBusId = "PCI:0:2:0";
};
}