summaryrefslogtreecommitdiffstats
path: root/2configs/hw/droidcam.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-11-16 21:37:03 +0100
committermakefu <github@syntax-fehler.de>2020-11-16 21:37:03 +0100
commit46cc7f47fa992ff9c323fc813b34d793950e6036 (patch)
tree6b3c3812de78cfb3876719ea10315dc1afa7c6e8 /2configs/hw/droidcam.nix
parentc7c4b0580073017a31f19491399fb621dbeb6176 (diff)
ma pkgs.droidcam: init software + kernel module
Diffstat (limited to '2configs/hw/droidcam.nix')
-rw-r--r--2configs/hw/droidcam.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/2configs/hw/droidcam.nix b/2configs/hw/droidcam.nix
new file mode 100644
index 000000000..c638123bb
--- /dev/null
+++ b/2configs/hw/droidcam.nix
@@ -0,0 +1,7 @@
+{ pkgs, config, ... }:
+{
+ boot.extraModprobeConfig = "options v4l2loopback_dc width=640 height=480";
+ boot.extraModulePackages = [
+ (pkgs.callPackage ../../5pkgs/v4l2loopback-dc { kernel = config.boot.kernelPackages.kernel; })
+ ];
+}