obs virtual camera

This commit is contained in:
Chris Kruining 2024-09-01 16:58:43 +02:00
parent 89b3f679bf
commit ee0fdf6ef3

View file

@ -14,8 +14,21 @@ in
config = mkIf cfg.enable config = mkIf cfg.enable
{ {
user.packages = attrValues { boot = {
inherit (pkgs) obs-studio obs-stuio-plugins.wlrobs; extraModulePackages = with config.boot.kernelPackages; [
v4l2loopback
];
extraModprobeConfig = ''
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
'';
}; };
security.polkit.enable = true;
user.packages = with pkgs; [
obs-studio
obs-studio-plugins.wlrobs
];
}; };
} }