{
  pkgs,
  lib,
  config,
  ...
}:
let
  cfg = config.youthlic.programs.obs;
in
{
  options = {
    youthlic.programs.obs = {
      enable = lib.mkEnableOption "obs";
    };
  };
  config = lib.mkIf cfg.enable {
    programs.obs-studio = {
      enable = true;
      plugins = with pkgs.obs-studio-plugins; [
        obs-source-record
        obs-pipewire-audio-capture
      ];
      enableVirtualCamera = true;
    };
  };
}
