]> git.scottworley.com Git - srec/blob - modules/v4l2loopback.nix
Turns out we don't need to track filename in Recording
[srec] / modules / v4l2loopback.nix
1 # h/t: https://askubuntu.com/questions/165727/is-it-possible-for-two-processes-to-access-the-webcam-at-the-same-time
2 # h/t: https://www.reddit.com/r/NixOS/comments/p8bqvu/how_to_install_v4l2looback_kernel_module/
3
4 { config, ... }: {
5 boot.extraModulePackages = with config.boot.kernelPackages;
6 [ v4l2loopback.out ];
7 boot.kernelModules = [ "v4l2loopback" ];
8 boot.extraModprobeConfig = ''
9 options v4l2loopback video_nr=9 exclusive_caps=1 card_label="Shareable Camera"
10 '';
11 }