mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-12-09 18:41:04 +01:00
init
This commit is contained in:
commit
3d7a565149
17 changed files with 831 additions and 0 deletions
13
rpi-zero-2-w/default.nix
Normal file
13
rpi-zero-2-w/default.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
rpi:
|
||||
{ lib, pkgs, config, ... }:
|
||||
|
||||
{
|
||||
imports = [ rpi ];
|
||||
hardware.raspberry-pi.deviceTree.base-dtb = "bcm2710-rpi-zero-2.dtb";
|
||||
# u-boot expects bcm2837-rpi-zero-2.dtb for the zero 2 w (as of
|
||||
# 2020.04), although the kernel has 2710. We rename it to satisfy
|
||||
# u-boot for now.
|
||||
hardware.raspberry-pi.deviceTree.postInstall = ''
|
||||
mv $out/broadcom/bcm2710-rpi-zero-2.dtb $out/broadcom/bcm2837-rpi-zero-2.dtb
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue