diff options
| author | adikro <adikro@disroot.org> | 2026-02-08 18:03:39 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2026-02-08 18:03:39 +0100 |
| commit | 2c8a4dd99efd61298bc18393e7fcbf6063db8671 (patch) | |
| tree | 1efd5ac8f5bcf7b1611cec1beaa545e6a2c14160 /hm/soft/obs.nix | |
| parent | eb95abfc230dc239122f1e89e90cd9a998491a2f (diff) | |
...
Diffstat (limited to 'hm/soft/obs.nix')
| -rw-r--r-- | hm/soft/obs.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/hm/soft/obs.nix b/hm/soft/obs.nix index 29c82a4..8d968e4 100644 --- a/hm/soft/obs.nix +++ b/hm/soft/obs.nix @@ -2,10 +2,13 @@ config, lib, pkgs, + osConfig, ... }: let cfg = config.hm.soft.obs; + + obsPass = osConfig.sops.placeholdder."obs/websocket_password" or null; in { options.hm.soft.obs.enable = lib.mkEnableOption "enables obs video recording and clipping"; @@ -16,9 +19,11 @@ in obs-pipewire-audio-capture ]; }; + home.packages = [ pkgs.obs-cmd ]; - home.sessionVariables = { - OBS_WEBSOCKET_URL = "obsws://localhost:4455/3uE66N4j0bTv2W1M"; + + home.sessionVariables = lib.mkIf (obsPass != null) { + OBS_WEBSOCKET_URL = obsPass; }; }; } |
