frigate: run with perf support
This commit is contained in:
@@ -7,6 +7,9 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
nvme = "/dev/disk/by-id/nvme-Samsung_SSD_970_EVO_Plus_2TB_S6P1NS0TA01331A_1";
|
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
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@@ -115,7 +118,9 @@ in
|
|||||||
frigate = {
|
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-mine} -m frigate";
|
||||||
EnvironmentFile = [ "-/run/frigate/secrets.env" ];
|
EnvironmentFile = [ "-/run/frigate/secrets.env" ];
|
||||||
|
Environment = [ "PYTHONPERFSUPPORT=1" ];
|
||||||
RuntimeDirectory = "frigate";
|
RuntimeDirectory = "frigate";
|
||||||
LoadCredential = [ "secrets.env:${config.age.secrets.frigate.path}" ];
|
LoadCredential = [ "secrets.env:${config.age.secrets.frigate.path}" ];
|
||||||
};
|
};
|
||||||
@@ -791,6 +796,7 @@ in
|
|||||||
ffmpeg
|
ffmpeg
|
||||||
rtorrent
|
rtorrent
|
||||||
age-plugin-yubikey
|
age-plugin-yubikey
|
||||||
|
python3-mine
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user