From e12f7feefcedfb2775d0351e24a27085fd795ba6 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sun, 27 Oct 2024 17:37:31 +0100 Subject: [PATCH] talos: enable v4l2 virtual camera module --- hosts/talos/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/talos/default.nix b/hosts/talos/default.nix index 5ee9cd2..02dff05 100644 --- a/hosts/talos/default.nix +++ b/hosts/talos/default.nix @@ -20,6 +20,12 @@ # Set Wi-Fi regulatory domain. Currently always set to '00' (world), and could # lead to bad Wi-Fi performance boot.kernelParams = ["cfg80211.ieee80211_regdom=FR"]; + boot.extraModulePackages = with config.boot.kernelPackages; [ + v4l2loopback + ]; + boot.extraModprobeConfig = '' + options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1 + ''; # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot = {