diff --git a/modules/desktop/apps/obs/default.nix b/modules/desktop/apps/obs/default.nix index f0c791dd..cb0faf1c 100644 --- a/modules/desktop/apps/obs/default.nix +++ b/modules/desktop/apps/obs/default.nix @@ -17,5 +17,15 @@ in { users.users.sako.packages = with pkgs; [ obs-studio ]; + + # OBS Virtual camera support + boot.extraModulePackages = with config.boot.kernelPackages; [ + v4l2loopback + ]; + boot.kernelModules = [ "v4l2loopback" ]; + boot.extraModprobeConfig = '' + options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1 + ''; + security.polkit.enable = true; }; }