mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			538 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			538 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  boot = {
 | 
						|
    initrd.kernelModules = [ "ata_piix" ];
 | 
						|
    kernelParams = [
 | 
						|
      "apm=on"
 | 
						|
      "acpi=on"
 | 
						|
      "vga=0x317"
 | 
						|
      "video=vesafb:ywrap"
 | 
						|
      # Important, to disable Kernel Mode Setting for the graphics card
 | 
						|
      # This will allow backlight regulation
 | 
						|
      "nomodeset"
 | 
						|
    ];
 | 
						|
  };
 | 
						|
 | 
						|
  hardware.opengl.driSupport = false;
 | 
						|
 | 
						|
  services.xserver = {
 | 
						|
    enable = true;
 | 
						|
    defaultDepth = 24;
 | 
						|
    videoDriver = "intel";
 | 
						|
    autorun = true;
 | 
						|
    synaptics = {
 | 
						|
      enable = true;
 | 
						|
      dev = "/dev/input/event8";
 | 
						|
    };
 | 
						|
  };
 | 
						|
}
 |