trying debuginfo

This commit is contained in:
2025-02-12 17:55:19 +02:00
parent a1e0bbef5a
commit 6d4408be0b
2 changed files with 11 additions and 5 deletions

View File

@@ -1,15 +1,15 @@
{
lib,
pkgs,
#pkgs,
config,
...
}:
let
cfg = config.mj.services.frigate;
python3-fp = pkgs.python312.overrideAttrs (_: {
EXTRA_CFLAGS = " -fno-omit-frame-pointer";
});
in
#python3-fp = pkgs.python312.overrideAttrs (_: {
# EXTRA_CFLAGS = " -fno-omit-frame-pointer";
#});
{
options.mj.services.frigate = with lib.types; {
enable = lib.mkEnableOption "enable frigate";
@@ -20,7 +20,7 @@ in
systemd.services.frigate = {
preStart = "ln -sf $CREDENTIALS_DIRECTORY/secrets.env /run/frigate/secrets.env";
serviceConfig = {
ExecStart = lib.mkForce "${lib.getExe python3-fp} -m frigate";
#ExecStart = lib.mkForce "${lib.getExe python3-fp} -m frigate";
EnvironmentFile = [ "-/run/frigate/secrets.env" ];
Environment = [ "PYTHONPERFSUPPORT=1" ];
RuntimeDirectory = "frigate";