mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			293 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			293 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ lib
 | 
						|
, pkgs
 | 
						|
, config
 | 
						|
, ...
 | 
						|
}:
 | 
						|
let
 | 
						|
  cfg = config.hardware.rockchip.rk3399;
 | 
						|
in {
 | 
						|
  imports = [
 | 
						|
    ../.
 | 
						|
  ];
 | 
						|
 | 
						|
  options.hardware.rockchip.rk3399 = {
 | 
						|
      enable = lib.mkEnableOption "Rockchip RK3399 support";
 | 
						|
  };
 | 
						|
 | 
						|
  config = lib.mkIf cfg.enable {
 | 
						|
    hardware.rockchip.enable = true;
 | 
						|
  };
 | 
						|
}
 |