frigate: run with perf support
This commit is contained in:
@@ -7,6 +7,9 @@
|
||||
}:
|
||||
let
|
||||
nvme = "/dev/disk/by-id/nvme-Samsung_SSD_970_EVO_Plus_2TB_S6P1NS0TA01331A_1";
|
||||
python3-mine = pkgs.python312.overrideAttrs (_: {
|
||||
EXTRA_CFLAGS = " -fno-omit-frame-pointer";
|
||||
});
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
@@ -115,7 +118,9 @@ in
|
||||
frigate = {
|
||||
preStart = "ln -sf $CREDENTIALS_DIRECTORY/secrets.env /run/frigate/secrets.env";
|
||||
serviceConfig = {
|
||||
ExecStart = lib.mkForce "${lib.getExe python3-mine} -m frigate";
|
||||
EnvironmentFile = [ "-/run/frigate/secrets.env" ];
|
||||
Environment = [ "PYTHONPERFSUPPORT=1" ];
|
||||
RuntimeDirectory = "frigate";
|
||||
LoadCredential = [ "secrets.env:${config.age.secrets.frigate.path}" ];
|
||||
};
|
||||
@@ -791,6 +796,7 @@ in
|
||||
ffmpeg
|
||||
rtorrent
|
||||
age-plugin-yubikey
|
||||
python3-mine
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user