summaryrefslogtreecommitdiff
path: root/hm/soft/obs.nix
blob: f28d8ec072aeffc4353725d23957a8741f399461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  config,
  lib,
  pkgs,
  ...
}:
let
  cfg = config.hm.soft.obs;
in
{
  options.hm.soft.obs.enable = lib.mkEnableOption "enables obs video recording and clipping";

  config = lib.mkIf cfg.enable {
    programs.obs-studio = {
      enable = true;
      plugins = with pkgs.obs-studio-plugins; [
        obs-pipewire-audio-capture
      ];
    };
    home.packages = [ pkgs.obs-cmd ];
  };
}