nixos/droidcam: init (#109267)
Co-authored-by: Pascal Bach <pascal.bach@nextrem.ch>
This commit is contained in:
parent
ba3e930e5c
commit
1517e6a14b
@ -126,6 +126,7 @@
|
||||
./programs/dconf.nix
|
||||
./programs/digitalbitbox/default.nix
|
||||
./programs/dmrconfig.nix
|
||||
./programs/droidcam.nix
|
||||
./programs/environment.nix
|
||||
./programs/evince.nix
|
||||
./programs/file-roller.nix
|
||||
|
16
nixos/modules/programs/droidcam.nix
Normal file
16
nixos/modules/programs/droidcam.nix
Normal file
@ -0,0 +1,16 @@
|
||||
{ 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" ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user