mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			337 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			337 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ lib, options, ... }:
 | 
						|
 | 
						|
{
 | 
						|
  imports = [ ../hybrid ];
 | 
						|
  services.xserver.videoDrivers = [ "nvidia" ];
 | 
						|
  hardware = {
 | 
						|
    nvidia.prime.offload.enable = false;
 | 
						|
  } // lib.optionalAttrs (options ? amdgpu.opencl.enable) {
 | 
						|
    # introduced in https://github.com/NixOS/nixpkgs/pull/319865
 | 
						|
    amdgpu.opencl.enable = lib.mkDefault false;
 | 
						|
  };
 | 
						|
}
 |