obs virtualcam

This commit is contained in:
Schrottkatze 2024-10-03 01:52:00 +02:00
parent f8492fc9e9
commit a60a561301
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc
2 changed files with 24 additions and 0 deletions

View file

@ -28,6 +28,7 @@ in
./fonts.nix
./firefox.nix
./x.nix
./obs.nix
];
programs.seahorse.enable = true;

23
modules/desktop/obs.nix Normal file
View file

@ -0,0 +1,23 @@
{
pkgs,
config,
...
}: {
environment.systemPackages = [
(pkgs.wrapOBS {
plugins = with pkgs.obs-studio-plugins; [
wlrobs
obs-backgroundremoval
obs-pipewire-audio-capture
];
})
];
boot.extraModulePackages = with config.boot.kernelPackages; [
v4l2loopback
];
boot.extraModprobeConfig = ''
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
'';
security.polkit.enable = true;
}