Commit 15db31b2 authored by hexchen's avatar hexchen Committed by Jörg Thalheim
Browse files

nixos/decklink: init

parent 517cf05c
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
{ config, lib, pkgs, ... }:

let
  cfg = config.hardware.decklink;
  kernelPackages = config.boot.kernelPackages;
in
{
  options.hardware.decklink.enable = lib.mkEnableOption "hardware support for the Blackmagic Design Decklink audio/video interfaces";

  config = lib.mkIf cfg.enable {
    boot.kernelModules = [ "blackmagic" "blackmagic-io" "snd_blackmagic-io" ];
    boot.extraModulePackages = [ kernelPackages.decklink ];
    systemd.packages = [ pkgs.blackmagic-desktop-video ];
    systemd.services.DesktopVideoHelper.wantedBy = [ "multi-user.target" ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@
  ./hardware/cpu/amd-sev.nix
  ./hardware/cpu/intel-microcode.nix
  ./hardware/cpu/intel-sgx.nix
  ./hardware/decklink.nix
  ./hardware/device-tree.nix
  ./hardware/digitalbitbox.nix
  ./hardware/flipperzero.nix