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