mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 01:53:09 +09:00
nixos/decklink: init
This commit is contained in:
parent
f634371d21
commit
73ffe01d1a
2 changed files with 19 additions and 0 deletions
18
nixos/modules/hardware/decklink.nix
Normal file
18
nixos/modules/hardware/decklink.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{ 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" ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -59,6 +59,7 @@
|
||||||
./hardware/cpu/intel-microcode.nix
|
./hardware/cpu/intel-microcode.nix
|
||||||
./hardware/cpu/intel-sgx.nix
|
./hardware/cpu/intel-sgx.nix
|
||||||
./hardware/cpu/x86-msr.nix
|
./hardware/cpu/x86-msr.nix
|
||||||
|
./hardware/decklink.nix
|
||||||
./hardware/device-tree.nix
|
./hardware/device-tree.nix
|
||||||
./hardware/digitalbitbox.nix
|
./hardware/digitalbitbox.nix
|
||||||
./hardware/flipperzero.nix
|
./hardware/flipperzero.nix
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue