{ config, lib, pkgs, namespace, ... }: with lib; with lib.${namespace}; let cfg = config.${namespace}.apps.obs; in { options.${namespace}.apps.obs = with types; { enable = mkBoolOpt false "Whether or not to enable obs."; }; config = mkIf cfg.enable { programs.obs-studio = { enable = true; plugins = with pkgs.obs-studio-plugins; [ wlrobs obs-backgroundremoval obs-pipewire-audio-capture ]; }; }; }