mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-11-08 19:46:03 +01:00
14 lines
398 B
Nix
14 lines
398 B
Nix
rpi:
|
|
{ lib, pkgs, config, ... }:
|
|
|
|
{
|
|
imports = [ rpi ];
|
|
hardware.raspberry-pi.deviceTree = {
|
|
base-dtb = "bcm2710-rpi-3-b-plus.dtb";
|
|
# u-boot expects bcm2837-rpi-3-b-plus.dtb for the 3b+ Rename the
|
|
# raspberry pi dtb to match mainline linux and satisfy u-boot.
|
|
postInstall = ''
|
|
mv $out/broadcom/bcm2710-rpi-3-b-plus.dtb $out/broadcom/bcm2837-rpi-3-b-plus.dtb
|
|
'';
|
|
};
|
|
}
|