nixos-config/home-manager/modules/obs-studio/default.nix

27 lines
504 B
Nix

{ lib
, pkgs
, config
, ...
}:
with lib; let
cfg = config.eboskma.programs.obs-studio;
in
{
options.eboskma.programs.obs-studio = { enable = mkEnableOption "activate obs-studio"; };
config = mkIf cfg.enable {
programs.obs-studio = {
enable = true;
plugins = [
pkgs.obs-backgroundremoval
]
++ (with pkgs.obs-studio-plugins; [
wlrobs
obs-vaapi
obs-gstreamer
obs-pipewire-audio-capture
obs-vkcapture
]);
};
};
}