From d379dd07a3217bb2af9910a0d98bb2067dd5787e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 10 Feb 2025 23:01:31 +0200 Subject: [PATCH] frigate: run with perf support --- hosts/fwminex/configuration.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/fwminex/configuration.nix b/hosts/fwminex/configuration.nix index 95341e8..be28c17 100644 --- a/hosts/fwminex/configuration.nix +++ b/hosts/fwminex/configuration.nix @@ -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 ]; };