NixOS on ARM/Raspberry Pi: Difference between revisions

imported>Samueldr
m Camera: re-words note to remove newlines + use {{pull}}
imported>Bachp
Describe how to make the camera available as /dev/video0
Line 105: Line 105:
   boot.loader.raspberryPi.uboot.startx = true;
   boot.loader.raspberryPi.uboot.startx = true;
   boot.loader.raspberryPi.uboot.gpu_mem = 256;
   boot.loader.raspberryPi.uboot.gpu_mem = 256;
}
</nowiki>}}
{{note| A reboot is required to load the new firmware configuration.}}
To make the camera available as v4l device under <code>/dev/video0</code> the <code>bcm2835-v4l2</code> kernel module need to be loaded. This can be done by adding the following code to your configuration.nix:
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{ config, pkgs, lib, ... }:
{
  boot.kernelModules = [ "bcm2835-v4l2" ];
}
}
</nowiki>}}
</nowiki>}}