summaryrefslogtreecommitdiff
path: root/modules/root/decklink.nix
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-07-11 11:26:40 -0500
committerTim Keller <tjk@tjkeller.xyz>2025-07-11 11:26:40 -0500
commit635edfc0ce1ae0504f2877f846211a4fdfa6d327 (patch)
tree284874a1ea01254bd6b500122aff12123f664cc0 /modules/root/decklink.nix
parent8879ac8f270cdced4a70257b2b0523f025b597b3 (diff)
downloadnixos-635edfc0ce1ae0504f2877f846211a4fdfa6d327.tar.xz
nixos-635edfc0ce1ae0504f2877f846211a4fdfa6d327.zip
blackmagic desktop vid custom derivation and decklink support
Diffstat (limited to 'modules/root/decklink.nix')
-rw-r--r--modules/root/decklink.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/root/decklink.nix b/modules/root/decklink.nix
new file mode 100644
index 0000000..6fd6395
--- /dev/null
+++ b/modules/root/decklink.nix
@@ -0,0 +1,24 @@
+{ lib, pkgs, ... }: {
+ options = {
+ decklink.enable = lib.mkEnableOption "enables decklink support";
+ };
+
+ config = {
+ # Kernel modules
+ hardware.decklink.enable = true;
+
+ # DesktopVideoHelper
+ environment.systemPackages = with pkgs; [ pkgs.blackmagic-desktop-video-gui ];
+
+ # Enable decklinkSupport flag globally for all packages that support it (e.g. obs)
+ nixpkgs.overlays = [
+ (final: prev: { decklinkSupport = true; })
+ #(import ./software/derivations/blackmagic-desktop-video-gui/default.nix)
+ (final: prev: {
+ blackmagic-desktop-video-gui = (pkgs.callPackage ./software/derivations/blackmagic-desktop-video-gui/generic.nix {}).override({
+ desktopVideoFull = true;
+ });
+ })
+ ];
+ };
+}