mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-12-22 01:25:52 +01:00
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
|
||||
./firefox.nix
|
||||
./x.nix
|
||||
./obs.nix
|
||||
];
|
||||
|
||||
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