mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	Two reasons for this change: - `intel` drivers are not updated from quite a long time (since ~2019), and `modesetting` is the preferred one for Intel iGPUs. - Technically you may want to disable NVIDIA GPUs on laptops with AMD processors too. We don't want to pin `modesetting` here because it is already the default since PR: https://github.com/NixOS/nixpkgs/pull/111551.
		
			
				
	
	
		
			10 lines
		
	
	
		
			259 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			259 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ lib, pkgs, ... }:
 | 
						|
 | 
						|
{
 | 
						|
  # This runs only Intel and nvidia does not drain power.
 | 
						|
 | 
						|
  ##### disable nvidia, very nice battery life.
 | 
						|
  hardware.nvidiaOptimus.disable = lib.mkDefault true;
 | 
						|
  boot.blacklistedKernelModules = lib.mkDefault [ "nouveau" "nvidia" ];
 | 
						|
}
 |