fakecam
This commit is contained in:
parent
5a689decf3
commit
707f24ab0b
2 changed files with 12 additions and 0 deletions
11
modules/hardware/misc/fakecam.nix
Normal file
11
modules/hardware/misc/fakecam.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ pkgs, config, ... }: {
|
||||
boot = {
|
||||
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
|
||||
kernelModules = [ "v4l2loopback" ];
|
||||
extraModprobeConfig = ''
|
||||
options v4l2loopback exclusive_caps=1 card_label="Virtual Camera"
|
||||
'';
|
||||
};
|
||||
|
||||
environment.systemPackages = [ pkgs.v4l-utils ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue