add obs virtual camera support
This commit is contained in:
parent
ee49973ce6
commit
6bd22c5f48
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue