1 { config, lib, pkgs, ... }:
4 cfg = config.hardware.decklink;
5 kernelPackages = config.boot.kernelPackages;
8 options.hardware.decklink.enable = lib.mkEnableOption "hardware support for the Blackmagic Design Decklink audio/video interfaces";
10 config = lib.mkIf cfg.enable {
11 # snd_blackmagic-io can cause issues with pipewire,
12 # so we do not enable it by default
13 boot.kernelModules = [ "blackmagic" "blackmagic-io" ];
14 boot.extraModulePackages = [ kernelPackages.decklink ];
15 systemd.packages = [ pkgs.blackmagic-desktop-video ];
16 systemd.services.DesktopVideoHelper.wantedBy = [ "multi-user.target" ];