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/
5 boot.extraModulePackages = with config.boot.kernelPackages;
7 boot.kernelModules = [ "v4l2loopback" ];
8 boot.extraModprobeConfig = ''
9 options v4l2loopback video_nr=8,9 exclusive_caps=1,1 card_label="Live Camera,Recording Camera"