obs virtual camera
This commit is contained in:
parent
89b3f679bf
commit
ee0fdf6ef3
1 changed files with 15 additions and 2 deletions
|
@ -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
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue