mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
17 lines
386 B
Nix
17 lines
386 B
Nix
|
{ lib, pkgs, config, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
options.programs.droidcam = {
|
||
|
enable = mkEnableOption (lib.mdDoc "DroidCam client");
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf config.programs.droidcam.enable {
|
||
|
environment.systemPackages = [ pkgs.droidcam ];
|
||
|
|
||
|
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
|
||
|
boot.kernelModules = [ "v4l2loopback" "snd-aloop" ];
|
||
|
};
|
||
|
}
|