about summary refs log tree commit diff
path: root/users/grfn/system/home/modules/obs.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/grfn/system/home/modules/obs.nix')
-rw-r--r--users/grfn/system/home/modules/obs.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/users/grfn/system/home/modules/obs.nix b/users/grfn/system/home/modules/obs.nix
new file mode 100644
index 000000000000..7962320f8a2f
--- /dev/null
+++ b/users/grfn/system/home/modules/obs.nix
@@ -0,0 +1,18 @@
+{ config, lib, pkgs, ... }:
+
+let
+  inherit (pkgs) obs-studio;
+  obs-input-overlay = pkgs.obs-studio-plugins.input-overlay;
+in
+
+{
+  home.packages = [
+    obs-studio
+    obs-input-overlay
+  ];
+
+  xdg.configFile."obs-studio/plugins/input-overlay/bin/64bit/input-overlay.so".source =
+    "${obs-input-overlay}/lib/obs-plugins/input-overlay.so";
+  xdg.configFile."obs-studio/plugins/input-overlay/data".source =
+    "${obs-input-overlay}/share/obs/obs-plugins/input-overlay";
+}