mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
1517e6a14b
Co-authored-by: Pascal Bach <pascal.bach@nextrem.ch>
17 lines
374 B
Nix
17 lines
374 B
Nix
{ lib, pkgs, config, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
options.programs.droidcam = {
|
|
enable = 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" ];
|
|
};
|
|
}
|