configuration.nix
:
let v4l2loopback-dc = pkgs.callPackage ./v4l2loopback-dc.nix {
kernel = pkgs.linux_4_19;
};
droidcam = pkgs.callPackage ./droidcam.nix {};
in {
boot.kernelPackages = pkgs.linuxPackages_4_19;
boot.extraModulePackages = [ v4l2loopback-dc ];
environment.systemPackages = [ droidcam ];
}
I updated this driver to the Linux kernel 5.4 and added support for Droidcam 1.7.2 in case you'd like the latest version (at this time of writing).
Thanks for your's, it saved me a lot of time!
https://gist.github.com/peterwilli/b61da8e2ddafe010f7178553135dc3d3