add obs virtual camera support

This commit is contained in:
Sakooooo 2024-09-08 12:07:59 +04:00
parent ee49973ce6
commit 6bd22c5f48
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -17,5 +17,15 @@ in {
users.users.sako.packages = with pkgs; [ users.users.sako.packages = with pkgs; [
obs-studio 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;
}; };
} }