mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
27 lines
667 B
Nix
27 lines
667 B
Nix
![]() |
{
|
||
|
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 {
|
||
|
# snd_blackmagic-io can cause issues with pipewire,
|
||
|
# so we do not enable it by default
|
||
|
boot.kernelModules = [
|
||
|
"blackmagic"
|
||
|
"blackmagic-io"
|
||
|
];
|
||
|
boot.extraModulePackages = [ kernelPackages.decklink ];
|
||
|
systemd.packages = [ pkgs.blackmagic-desktop-video ];
|
||
|
systemd.services.DesktopVideoHelper.wantedBy = [ "multi-user.target" ];
|
||
|
};
|
||
|
}
|