5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
14 lines
367 B
Nix
14 lines
367 B
Nix
{ lib, pkgs, config, ... }:
|
|
|
|
{
|
|
options.programs.droidcam = {
|
|
enable = lib.mkEnableOption "DroidCam client";
|
|
};
|
|
|
|
config = lib.mkIf config.programs.droidcam.enable {
|
|
environment.systemPackages = [ pkgs.droidcam ];
|
|
|
|
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
|
|
boot.kernelModules = [ "v4l2loopback" "snd-aloop" ];
|
|
};
|
|
}
|