diff options
Diffstat (limited to 'modules/root/decklink.nix')
-rw-r--r-- | modules/root/decklink.nix | 24 |
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; + }); + }) + ]; + }; +} |