OBS Studio: Difference between revisions
imported>Flexiondotorg m Correct syntax error |
imported>Steadygaze Add note about package collision gotcha |
||
Line 30: | Line 30: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Including both <code>obs-studio</code> and <code>(pkgs.wrapOBS {...</code> in <code>environment.systemPackages</code> will result in a package collision; if plugins are needed, only include the "wrapped" version, which sets the plugins directory to include Nix-managed plugins (see [https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/video/obs-studio/wrapper.nix pkgs/applications/video/obs-studio/wrapper.nix]. | |||
=== Using the Virtual Camera === | === Using the Virtual Camera === |
Revision as of 19:14, 8 October 2023
OBS Studio is free and open-source software for video recording and live streaming, licensed under the GNU GPLv2 license.
Installing Plugins
Plugins are available from the obs-studio-plugins
package set.
They can be installed by either wrapping the package with wrapOBS
:
environment.systemPackages = [
(pkgs.wrapOBS {
plugins = with pkgs.obs-studio-plugins; [
wlrobs
];
})
];
or using Home Manager:
{ config, pkgs, ... }:
{
programs.obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [
wlrobs
];
};
}
Including both obs-studio
and (pkgs.wrapOBS {...
in environment.systemPackages
will result in a package collision; if plugins are needed, only include the "wrapped" version, which sets the plugins directory to include Nix-managed plugins (see pkgs/applications/video/obs-studio/wrapper.nix.
Using the Virtual Camera
The virtual camera requires the v4l2loopback
kernel module to be installed, like so:
{ config, ... }:
{
boot.extraModulePackages = with config.boot.kernelPackages; [
v4l2loopback
];
}