summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/hw/droidcam.nix
blob: adc0aa379ebed96355a3ae6f3a32a6e8dc34b398 (plain)
1
2
3
4
5
6
7
8
9
{ pkgs, config, ... }:
{
  boot.extraModprobeConfig = "options v4l2loopback_dc width=640 height=480";
  boot.extraModulePackages = [
    (pkgs.callPackage  ../../5pkgs/v4l2loopback-dc { kernel = config.boot.kernelPackages.kernel; })
  ];
  boot.initrd.availableKernelModules = [ "v4l2loopback-dc" ];
  users.users.makefu.packages = [ pkgs.droidcam ];
}