mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			381 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			381 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ config, lib, ... }:
 | 
						|
 | 
						|
{
 | 
						|
  imports = [ ../. ];
 | 
						|
 | 
						|
  boot = {
 | 
						|
    extraModulePackages = with config.boot.kernelPackages; [ mba6x_bl ];
 | 
						|
    kernelModules = [ "mba6x_bl" ];
 | 
						|
 | 
						|
    # Divides power consumption by two.
 | 
						|
    kernelParams = [ "acpi_osi=" ];
 | 
						|
  };
 | 
						|
 | 
						|
  services.xserver.deviceSection = lib.mkDefault ''
 | 
						|
    Option "Backlight" "mba6x_backlight"
 | 
						|
    Option "TearFree" "true"
 | 
						|
  '';
 | 
						|
}
 |