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

@ -6,7 +6,7 @@
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ # # By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2024/10/17 18:15:24 by tomoron #+# #+# # # Created: 2024/10/17 18:15:24 by tomoron #+# #+# #
# Updated: 2024/10/17 19:03:37 by tomoron ### ########.fr # # Updated: 2024/10/17 21:53:46 by tomoron ### ########.fr #
# # # #
# **************************************************************************** # # **************************************************************************** #
@ -52,7 +52,7 @@
]; ];
}; };
desktop = nixpkgs.lib.nixosSystem { desktop = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;flakeName="laptop";}; specialArgs = {inherit inputs;flakeName="desktop";};
modules = [ modules = [
./configuration.nix ./configuration.nix
./hosts/desktop.nix ./hosts/desktop.nix

View File

@ -9,4 +9,18 @@
]; ];
networking.hostName = "nixos-fixe"; 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";
};
} }