organize kernels and firmware

This commit is contained in:
Travis Staton 2023-01-25 10:16:30 -05:00
parent 28498601bb
commit 9cac87a79c
8 changed files with 212 additions and 127 deletions

View file

@ -3,6 +3,17 @@ rpi:
{
imports = [ rpi ];
nixpkgs = {
overlays = [
(final: prev: {
raspberrypiWirelessFirmware =
final.rpi-kernels.v5_15_87.wireless-firmware;
raspberrypifw = final.rpi-kernels.v5_15_87.firmware;
})
];
};
boot.kernelPackages =
pkgs.linuxPackagesFor (pkgs.rpi-kernels.v5_15_87.kernel);
hardware.raspberry-pi.deviceTree = {
base-dtb = "bcm2710-rpi-3-b-plus.dtb";
# u-boot expects bcm2837-rpi-3-b-plus.dtb for the 3b+ (as of