summaryrefslogtreecommitdiff
path: root/hm/soft/obs.nix
blob: c6bf32659bf8ce2113dd4494c56146d4c22513bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ 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; [
        wlrobs
        obs-websocket
        obs-pipewire-audio-capture
      ];
    };
    home.packages = [ pkgs.obs-cmd ];
    home.sessionVariables = {
      OBS_WEBSOCKET_URL = "obsws://localhost:4455/3uE66N4j0bTv2W1M";
    };
  };
}