OBS Studio: Difference between revisions

From NixOS Wiki
imported>Wackbyte
m "open source" -> "open-source"
imported>Anoadragon453
m Provide a clearer example for how to install obs-studio plugins without home-manager
Line 8: Line 8:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
pkgs.wrapOBS.override { obs-studio = pkgs.obs-studio; } {
environment.systemPackages = [
  plugins = with pkgs.obs-studio-plugins; [
  (pkgs.wrapOBS {
    wlrobs
    plugins = with pkgs.obs-studio-plugins; [
  ];
      wlrobs
};
    ];
  });
];
</syntaxhighlight>
</syntaxhighlight>



Revision as of 00:16, 28 November 2022

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
    ];
  };
}

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
  ];
}