2021-04-08 16:26:57 +00:00
|
|
|
{ lib, pkgs, config, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
options.programs.droidcam = {
|
2024-05-15 15:35:15 +00:00
|
|
|
enable = lib.mkEnableOption "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" ];
|
|
|
|
};
|
|
|
|
}
|