2021-04-05 21:32:21 +02:00
|
|
|
{ lib, pkgs, config, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
options.programs.droidcam = {
|
2022-08-28 21:18:44 +02:00
|
|
|
enable = mkEnableOption (lib.mdDoc "DroidCam client");
|
2021-04-05 21:32:21 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf config.programs.droidcam.enable {
|
|
|
|
environment.systemPackages = [ pkgs.droidcam ];
|
|
|
|
|
|
|
|
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
|
|
|
|
boot.kernelModules = [ "v4l2loopback" "snd-aloop" ];
|
|
|
|
};
|
|
|
|
}
|