1 { lib, pkgs, config, ... }:
6 options.programs.droidcam = {
7 enable = mkEnableOption (lib.mdDoc "DroidCam client");
10 config = lib.mkIf config.programs.droidcam.enable {
11 environment.systemPackages = [ pkgs.droidcam ];
13 boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
14 boot.kernelModules = [ "v4l2loopback" "snd-aloop" ];