From 16372762984018f9411c197bbdf5c24e16f0694b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 19 Feb 2025 22:01:34 +0200 Subject: [PATCH] add timelapse-r11 to backups --- hosts/fwminex/configuration.nix | 1 + modules/services/frigate/default.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/hosts/fwminex/configuration.nix b/hosts/fwminex/configuration.nix index cb700fc..bb7d31a 100644 --- a/hosts/fwminex/configuration.nix +++ b/hosts/fwminex/configuration.nix @@ -584,6 +584,7 @@ in "bitwarden_rs" "matrix-synapse" "private/soju" + "private/timelapse-r11" # https://immich.app/docs/administration/backup-and-restore/ "immich/library" diff --git a/modules/services/frigate/default.nix b/modules/services/frigate/default.nix index 730a365..25020d1 100644 --- a/modules/services/frigate/default.nix +++ b/modules/services/frigate/default.nix @@ -43,6 +43,7 @@ in systemd.services = { timelapse-r11 = { + preStart = "ln -sf $CREDENTIALS_DIRECTORY/secrets.env /run/timelapse-r11/secrets.env"; serviceConfig = { ExecStart = lib.getExe timelapseScript; EnvironmentFile = [ "-/run/timelapse-r11/secrets.env" ];