nixos-config/2configs/bam/cam.nix
2024-01-15 22:37:31 +01:00

12 lines
378 B
Nix

{
# the pseyecam in the diorama
services.udev.extraRules = ''
SUBSYSTEM=="video4linux", ATTRS{idVendor}=="1415", ATTRS{idProduct}=="2000", SYMLINK+="diorama_cam"
'';
services.mjpg-streamer = {
enable = true;
inputPlugin = "input_uvc.so -d /dev/diorama_cam -r 640x480 -y -f 30 -q 50 -n";
outputPlugin = "output_http.so -w @www@ -n -p 18088";
};
}