2021-04-08 16:26:57 +00:00
|
|
|
{ lib, pkgs, config, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
options.programs.droidcam = {
|
2022-09-09 14:08:57 +00:00
|
|
|
enable = mkEnableOption (lib.mdDoc "DroidCam client");
|
2021-04-08 16:26:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf config.programs.droidcam.enable {
|
|
|
|
environment.systemPackages = [ pkgs.droidcam ];
|
|
|
|
|
|
|
|
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
|
|
|
|
boot.kernelModules = [ "v4l2loopback" "snd-aloop" ];
|
|
|
|
};
|
|
|
|
}
|