Skip to content

Commit

Permalink
nixos/frigate: inherit required functions from lib
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Nov 21, 2024
1 parent d7a4d36 commit 0bb1e3e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nixos/modules/services/video/frigate.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ let
inherit (lib)
any
attrValues
converge
elem
filterAttrsRecursive
hasPrefix
makeLibraryPath
mkDefault
Expand All @@ -23,7 +26,7 @@ let

format = pkgs.formats.yaml { };

filteredConfig = lib.converge (lib.filterAttrsRecursive (_: v: ! lib.elem v [ null ])) cfg.settings;
filteredConfig = converge (filterAttrsRecursive (_: v: ! elem v [ null ])) cfg.settings;

cameraFormat = with types; submodule {
freeformType = format.type;
Expand Down Expand Up @@ -548,7 +551,7 @@ in
libva-utils
procps
radeontop
] ++ lib.optionals (!stdenv.hostPlatform.isAarch64) [
] ++ optionals (!stdenv.hostPlatform.isAarch64) [
# not available on aarch64-linux
intel-gpu-tools
];
Expand Down

0 comments on commit 0bb1e3e

Please sign in to comment.