NixOS on ARM: Difference between revisions
imported>Makefu No edit summary |
imported>Makefu |
||
| Line 131: | Line 131: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Use <code>nix-shell -p screen --run "screen /dev/ttyUSB0 115200"</code> to connect to the console. | Use <code>nix-shell -p screen --run "screen /dev/ttyUSB0 115200"</code> to connect to the console. | ||
{{ | {{note|Right now (2017-10-08) wifi is not working out of the box on the Raspberrypi 3, you will need to use ethernet. Add the following to your configuration.nix:}} | ||
<syntaxhighlight lang=nix> | |||
{ | |||
... | |||
hardware.enableRedistributableFirmware = true; | |||
hardware.firmware = [ | |||
(pkgs.stdenv.mkDerivation { | |||
name = "broadcom-rpi3-extra"; | |||
src = pkgs.fetchurl { | |||
url = "https://raw.githubusercontent.com/RPi-Distro/firmware-nonfree/54bab3d/brcm80211/brcm/brcmfmac43430-sdio.txt"; | |||
sha256 = "19bmdd7w0xzybfassn7x4rb30l70vynnw3c80nlapna2k57xwbw7"; | |||
}; | |||
phases = [ "installPhase" ]; | |||
installPhase = '' | |||
mkdir -p $out/lib/firmware/brcm | |||
cp $src $out/lib/firmware/brcm/brcmfmac43430-sdio.txt | |||
''; | |||
}) | |||
]; | |||
networking.wireless.enable = true; | |||
} | |||
</syntaxhighlight> | |||
=== Wandboard === | === Wandboard === | ||