Squash merge refactor into main
This commit is contained in:
parent
529c9e5fa7
commit
b82cd59f4f
35 changed files with 498 additions and 358 deletions
17
system/modules/webcam.nix
Normal file
17
system/modules/webcam.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue