mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			578 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			578 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ lib, pkgs, ...}:
 | 
						|
 | 
						|
{
 | 
						|
  imports = [
 | 
						|
    ./audio.nix
 | 
						|
    ./dwc2.nix
 | 
						|
    ./i2c.nix
 | 
						|
    ./modesetting.nix
 | 
						|
    ./poe-hat.nix
 | 
						|
    ./tc358743.nix
 | 
						|
    ./pwm0.nix
 | 
						|
  ];
 | 
						|
 | 
						|
  boot = {
 | 
						|
    kernelPackages = lib.mkDefault pkgs.linuxPackages_rpi4;
 | 
						|
    initrd.availableKernelModules = [ "usbhid" "usb_storage" "vc4" ];
 | 
						|
 | 
						|
    loader = {
 | 
						|
      grub.enable = lib.mkDefault false;
 | 
						|
      generic-extlinux-compatible.enable = lib.mkDefault true;
 | 
						|
    };
 | 
						|
  };
 | 
						|
 | 
						|
  hardware.deviceTree.filter = "bcm2711-rpi-*.dtb";
 | 
						|
 | 
						|
  # Required for the Wireless firmware
 | 
						|
  hardware.enableRedistributableFirmware = true;
 | 
						|
}
 |