Enable telegram notifications

This commit is contained in:
Andreas Zweili 2022-11-21 08:36:03 +01:00
parent 4b95485090
commit e58962c677
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,9 @@ let
repository = "/var/lib/restic-server";
in
{
imports = [
(import "${custom.inputs.self}/modules/telegram-notifications" { inherit custom; })
];
age.secrets.resticKey = {
file = "${custom.inputs.self}/scrts/restic.key.age";
mode = "440";
@ -31,6 +34,7 @@ in
Type = "oneshot";
User = "restic";
};
onFailure = [ "unit-status-telegram@%n.service" ];
script = ''
${pkgs.restic}/bin/restic \
--repo ${repository} \