frigate: bring back python with fp
This commit is contained in:
@@ -1,10 +1,14 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
pkgs,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.mj.services.frigate;
|
cfg = config.mj.services.frigate;
|
||||||
|
python3-fp = pkgs.python312.overrideAttrs (_: {
|
||||||
|
EXTRA_CFLAGS = " -fno-omit-frame-pointer";
|
||||||
|
});
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.mj.services.frigate = with lib.types; {
|
options.mj.services.frigate = with lib.types; {
|
||||||
@@ -16,6 +20,7 @@ in
|
|||||||
systemd.services.frigate = {
|
systemd.services.frigate = {
|
||||||
preStart = "ln -sf $CREDENTIALS_DIRECTORY/secrets.env /run/frigate/secrets.env";
|
preStart = "ln -sf $CREDENTIALS_DIRECTORY/secrets.env /run/frigate/secrets.env";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
ExecStart = lib.mkForce "${lib.getExe python3-fp} -m frigate";
|
||||||
EnvironmentFile = [ "-/run/frigate/secrets.env" ];
|
EnvironmentFile = [ "-/run/frigate/secrets.env" ];
|
||||||
Environment = [ "PYTHONPERFSUPPORT=1" ];
|
Environment = [ "PYTHONPERFSUPPORT=1" ];
|
||||||
RuntimeDirectory = "frigate";
|
RuntimeDirectory = "frigate";
|
||||||
|
|||||||
Reference in New Issue
Block a user