mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			372 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			372 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ config, lib, ... }:
 | 
						|
{
 | 
						|
  options.hardware.rockpro64.console = lib.mkOption {
 | 
						|
    default = "hdmi";
 | 
						|
    description = "Default console to use at boot.";
 | 
						|
    type = lib.types.enum [
 | 
						|
      "hdmi"
 | 
						|
      "serial"
 | 
						|
    ];
 | 
						|
  };
 | 
						|
  config = lib.mkIf (config.hardware.rockpro64.console == "hdmi") {
 | 
						|
    boot.kernelParams = [
 | 
						|
      "console=ttyS0"
 | 
						|
      "console=tty0"
 | 
						|
    ];
 | 
						|
  };
 | 
						|
}
 |