Squash merge refactor into main

This commit is contained in:
danny 2025-08-09 22:22:19 +08:00
parent 529c9e5fa7
commit b82cd59f4f
35 changed files with 498 additions and 358 deletions

17
system/modules/webcam.nix Normal file
View file

@ -0,0 +1,17 @@
# Use WebRTC to stream
{ pkgs, config, ... }:
{
environment.systemPackages = with pkgs; [
ffmpeg
v4l-utils
];
boot = {
kernelModules = [ "v4l2loopback" ];
extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
};
boot.extraModprobeConfig = ''
options v4l2loopback devices=2 video_nr=1,2 card_label="OBS Cam","phone webRTC cam" exclusive_caps=1,1
'';
}