NixOS on ARM/Raspberry Pi: Difference between revisions

imported>Lopsided98
I have tested a Raspberry Pi 1 Model B
imported>Lopsided98
Remove notes about pull requests that were merged a long time ago.
Line 118: Line 118:
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|The mainline kernel (tested with nixos kernel 4.18.7) [https://github.com/raspberrypi/linux/wiki/Upstreaming#downstream-drivers does not include support for cpu frequency scaling] on the Raspberry Pi. To get higher clock speed, set [https://www.raspberrypi.org/documentation/configuration/config-txt/overclocking.md <code><nowiki>force_turbo=1</nowiki></code>] in <code>/boot/config.txt</code> }}
{{note|The mainline kernel (tested with nixos kernel 4.18.7) [https://github.com/raspberrypi/linux/wiki/Upstreaming#downstream-drivers does not include support for cpu frequency scaling] on the Raspberry Pi. To get higher clock speed, set [https://www.raspberrypi.org/documentation/configuration/config-txt/overclocking.md <code><nowiki>force_turbo=1</nowiki></code>] in <code>/boot/config.txt</code> }}
{{note|As of today (2018-01-13) the stable channel contains fixes for wifi for both the stable and the latest linux kernel. Check out {{pull|53747}} }}
 
<syntaxhighlight lang=nix>
<syntaxhighlight lang=nix>
{
{
Line 142: Line 142:
For the camera to work, you will need to add the following code to your configuration.nix:  
For the camera to work, you will need to add the following code to your configuration.nix:  


{{note| Two pull requests ({{pull|38490}} and {{pull|38342}}) are required to make this configuration.nix and the camera working.}}
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{ config, pkgs, lib, ... }:
{ config, pkgs, lib, ... }: