-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frigate: coral tpu support, audio model, nvidia ffmpeg hwaccel, other…
… fixes (#357717)
- Loading branch information
Showing
7 changed files
with
154 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
config, | ||
lib, | ||
pkgs, | ||
... | ||
}: | ||
|
||
let | ||
inherit (lib) | ||
mkEnableOption | ||
mkIf | ||
mkMerge | ||
; | ||
|
||
cfg = config.hardware.coral; | ||
in | ||
|
||
{ | ||
options.hardware.coral = { | ||
usb.enable = mkEnableOption "Coral USB support"; | ||
pcie.enable = mkEnableOption "Coral PCIe support"; | ||
}; | ||
|
||
config = mkMerge [ | ||
(mkIf (cfg.usb.enable || cfg.pcie.enable) { | ||
users.groups.coral = { }; | ||
}) | ||
(mkIf cfg.usb.enable { | ||
services.udev.packages = with pkgs; [ libedgetpu ]; | ||
}) | ||
(mkIf cfg.pcie.enable { | ||
boot.extraModulePackages = with config.boot.kernelPackages; [ gasket ]; | ||
services.udev.extraRules = '' | ||
SUBSYSTEM=="apex",MODE="0660",GROUP="coral" | ||
''; | ||
}) | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters