NixOS on ARM/Raspberry Pi: Difference between revisions
imported>Petersjt014 updated note about 3B+ image |
imported>Mbrock Add WiFi firmware configuration for RPi 3B+ |
||
Line 76: | Line 76: | ||
=== Raspberry Pi 3B+ === | === Raspberry Pi 3B+ === | ||
Here is a similar incantation as above, but for the Raspberry Pi 3B+: | |||
<syntaxhighlight lang=nix> | |||
{ | |||
... | |||
hardware.enableRedistributableFirmware = true; | |||
hardware.firmware = [ | |||
(pkgs.stdenv.mkDerivation { | |||
name = "broadcom-rpi3bplus-extra"; | |||
src = pkgs.fetchurl { | |||
url = "https://raw.githubusercontent.com/RPi-Distro/firmware-nonfree/b518de4/brcm/brcmfmac43455-sdio.txt"; | |||
sha256 = "0r4bvwkm3fx60bbpwd83zbjganjnffiq1jkaj0h20bwdj9ysawg9"; | |||
}; | |||
phases = [ "installPhase" ]; | |||
installPhase = '' | |||
mkdir -p $out/lib/firmware/brcm | |||
cp $src $out/lib/firmware/brcm/brcmfmac43455-sdio.txt | |||
''; | |||
}) | |||
]; | |||
networking.wireless.enable = true; | |||
} | |||
</syntaxhighlight> | |||
<s>Until the kernel 3.18 is finalized, this will require a temporary work-around image. See also the note in the [[#Serial console]] section.</s> The workaround is no longer needed: | <s>Until the kernel 3.18 is finalized, this will require a temporary work-around image. See also the note in the [[#Serial console]] section.</s> The workaround is no longer needed: |