1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-18 17:09:41 +01:00
nixos-hardware/raspberry-pi/4/default.nix
2021-12-11 01:17:44 +09:00

27 lines
564 B
Nix

{ lib, pkgs, ...}:
{
imports = [
./audio.nix
./dwc2.nix
./i2c1.nix
./modesetting.nix
./poe-hat.nix
./tc358743.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;
}