diff --git a/nixos/modules/services/video/frigate.nix b/nixos/modules/services/video/frigate.nix index 84a8ba9cb10a5b..1e2779268cc848 100644 --- a/nixos/modules/services/video/frigate.nix +++ b/nixos/modules/services/video/frigate.nix @@ -100,6 +100,10 @@ let withCoralUSB = any (d: d.type == "edgetpu" && lib.hasPrefix "usb" d.device or "") detectors; withCoralPCI = any (d: d.type == "edgetpu" && lib.hasPrefix "pci" d.device or "") detectors; withCoral = withCoralPCI || withCoralUSB; + + # Provide ffmpeg-full for NVIDIA hardware acceleration + ffmpegArgs = cfg.settings.ffmpeg.hwaccel_args or ""; + ffmpeg' = if lib.match "/nvidia/" ffmpegArgs != null then pkgs.ffmpeg-full else pkgs.ffmpeg-headless; in { @@ -536,7 +540,7 @@ in path = with pkgs; [ # unfree: # config.boot.kernelPackages.nvidiaPackages.latest.bin - ffmpeg-headless + ffmpeg' libva-utils procps radeontop