2021-05-11 09:32:03 +02:00
|
|
|
{ lib, pkgs, ...}:
|
|
|
|
|
|
|
|
{
|
2021-05-13 02:51:38 +02:00
|
|
|
imports = [
|
2021-05-27 06:42:19 +02:00
|
|
|
./dwc2.nix
|
2021-05-13 02:51:38 +02:00
|
|
|
./modesetting.nix
|
2021-05-30 14:52:18 +02:00
|
|
|
./tc358743.nix
|
2021-05-13 02:51:38 +02:00
|
|
|
];
|
|
|
|
|
2021-05-11 09:32:03 +02:00
|
|
|
boot = {
|
|
|
|
kernelPackages = lib.mkDefault pkgs.linuxPackages_rpi4;
|
|
|
|
initrd.availableKernelModules = [ "usbhid" "usb_storage" "vc4" ];
|
|
|
|
|
|
|
|
loader = {
|
2021-05-12 14:37:30 +02:00
|
|
|
grub.enable = lib.mkDefault false;
|
|
|
|
generic-extlinux-compatible.enable = lib.mkDefault true;
|
2021-05-11 09:32:03 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-05-27 06:41:34 +02:00
|
|
|
hardware.deviceTree.filter = "bcm2711-rpi-*.dtb";
|
2021-05-11 09:32:03 +02:00
|
|
|
|
|
|
|
# Required for the Wireless firmware
|
|
|
|
hardware.enableRedistributableFirmware = true;
|
2021-05-12 21:42:30 +02:00
|
|
|
}
|