about summary refs log tree commit diff
path: root/machines/profpatsch
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2022-05-23 13:16:30 +0200
committerProfpatsch <mail@profpatsch.de>2022-06-26 16:00:52 +0200
commitc8b327f09fb98edf6e462dfc9edca6ea8c0dec71 (patch)
tree7a564129fa0e1a57f35e47a97d3bef46069fc23a /machines/profpatsch
parent06593a088ba28c1cc48ec40254084ea2bd4ceb76 (diff)
machines/shiki: enable v4l2loopback kernel module
Diffstat (limited to 'machines/profpatsch')
-rw-r--r--machines/profpatsch/shiki.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/machines/profpatsch/shiki.nix b/machines/profpatsch/shiki.nix
index 431114fa..3fc30756 100644
--- a/machines/profpatsch/shiki.nix
+++ b/machines/profpatsch/shiki.nix
@@ -34,6 +34,18 @@ in {
     boot.loader.systemd-boot.enable = true;
     boot.loader.grub.enable = false;
 
+    # enable video loopback devices
+    # via https://gist.github.com/TheSirC/93130f70cc280cdcdff89faf8d4e98ab
+    boot.extraModulePackages = [
+       config.boot.kernelPackages.v4l2loopback
+    ];
+    boot.kernelModules = [
+      "v4l2loopback"
+    ];
+    boot.extraModprobeConfig = ''
+      options v4l2loopback exclusive_caps=1
+    '';
+
     ###########
     # Hardware