1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-30 13:39:45 +01:00
nixos-hardware/raspberry-pi/4/default.nix
matthewcroughan c9c1a5294e raspberry-pi/4: add pcie_brcmstb and reset-raspberrypi to kernelParams
This is required for things like USB Boot to work correctly

Co-authored-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
2022-10-27 03:24:07 +01:00

37 lines
796 B
Nix

{ lib, pkgs, ...}:
{
imports = [
./audio.nix
./cpu-revision.nix
./dwc2.nix
./i2c.nix
./modesetting.nix
./poe-hat.nix
./poe-plus-hat.nix
./tc358743.nix
./pwm0.nix
./pkgs-overlays.nix
];
boot = {
kernelPackages = lib.mkDefault pkgs.linuxPackages_rpi4;
initrd.availableKernelModules = [
"usbhid"
"usb_storage"
"vc4"
"pcie_brcmstb" # required for the pcie bus to work
"reset-raspberrypi" # required for vl805 firmware to load
];
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;
}