obs virtualcam
This commit is contained in:
parent
f8492fc9e9
commit
a60a561301
2 changed files with 24 additions and 0 deletions
|
@ -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
23
modules/desktop/obs.nix
Normal 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;
|
||||||
|
}
|
Loading…
Reference in a new issue