mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	rockchip/rk3588: init
This commit is contained in:
		
				
					committed by
					
						
						mergify[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							79bc209be8
						
					
				
				
					commit
					28f2a7454f
				
			@@ -8,6 +8,7 @@ let
 | 
			
		||||
in {
 | 
			
		||||
  imports = [
 | 
			
		||||
    ./rk3399
 | 
			
		||||
    ./rk3588
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  options.hardware.rockchip = {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										16
									
								
								rockchip/rk3588/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								rockchip/rk3588/default.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
{ lib
 | 
			
		||||
, pkgs
 | 
			
		||||
, config
 | 
			
		||||
, ...
 | 
			
		||||
}:
 | 
			
		||||
let
 | 
			
		||||
  cfg = config.hardware.rockchip.rk3588;
 | 
			
		||||
in {
 | 
			
		||||
  options.hardware.rockchip.rk3588 = {
 | 
			
		||||
    enable = lib.mkEnableOption "Rockchip RK3588 support";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = lib.mkIf cfg.enable {
 | 
			
		||||
    hardware.rockchip.enable = true;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user