obs virtualcam

This commit is contained in:
Schrottkatze 2024-10-03 01:52:00 +02:00
parent f8492fc9e9
commit a60a561301
No known key found for this signature in database
2 changed files with 24 additions and 0 deletions

View file

@ -28,6 +28,7 @@ in
./fonts.nix ./fonts.nix
./firefox.nix ./firefox.nix
./x.nix ./x.nix
./obs.nix
]; ];
programs.seahorse.enable = true; 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;
}