Skip to content

Commit

Permalink
rp3: Install mjpg-streamer
Browse files Browse the repository at this point in the history
  • Loading branch information
wagdav committed Dec 7, 2023
1 parent 5940b9d commit 4f7e502
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions host-rp3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{
imports = [
./hardware/rp3.nix
./modules/camera.nix
./modules/common.nix
./modules/cachix.nix
./modules/remote-builder
Expand Down
7 changes: 7 additions & 0 deletions modules/camera.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{ config, ... }:

{
services.mjpg-streamer.enable = true;
services.mjpg-streamer.inputPlugin = "input_uvc.so -vf true";
networking.firewall.allowedTCPPorts = [ 5050 ];
}

0 comments on commit 4f7e502

Please sign in to comment.