4c9a200c83
this involves moving the blackmagic package and module from hexchen's nixpkgs fork into this repo directly.
21 lines
685 B
Nix
21 lines
685 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.hardware.decklink;
|
|
kernelPackages = config.boot.kernelPackages;
|
|
in
|
|
{
|
|
options.hardware.decklink.enable = mkEnableOption "Enable hardware support for the Blackmagic Design Decklink audio/video interfaces.";
|
|
|
|
config = mkIf cfg.enable {
|
|
boot.kernelModules = [ "blackmagic" "blackmagic-io" "snd_blackmagic-io" ];
|
|
boot.extraModulePackages = [ kernelPackages.decklink ];
|
|
systemd.services."DecklinkVideoHelper" = {
|
|
after = [ "syslog.target" "local-fs.target" ];
|
|
wantedBy = [ "multi-user.target" ];
|
|
serviceConfig.ExecStart = "${pkgs.blackmagicDesktopVideo}/bin/DesktopVideoHelper -n";
|
|
};
|
|
};
|
|
}
|