From fc1e93f73113c78f1a83f98690d10eb8959c8d59 Mon Sep 17 00:00:00 2001 From: Andrea Ciceri Date: Wed, 7 Aug 2024 15:31:05 +0200 Subject: [PATCH] Grafana can send emails --- hosts/default.nix | 6 +++++- modules/grafana/default.nix | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/hosts/default.nix b/hosts/default.nix index 16a5f4f..198b282 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -181,7 +181,11 @@ "hass-ssh-key".owner = "hass"; # "matrix-registration-shared-secret".owner = "matrix-synapse"; # "matrix-sliding-sync-secret".owner = "matrix-synapse"; - "autistici-password".owner = "forgejo"; + "autistici-password" = { + # FIXME terrible, should create a third ad-hoc group + owner = "grafana"; + group = "forgejo"; + }; "garmin-collector-environment".owner = "garmin-collector"; }; }; diff --git a/modules/grafana/default.nix b/modules/grafana/default.nix index 98624b8..33d93f7 100644 --- a/modules/grafana/default.nix +++ b/modules/grafana/default.nix @@ -14,6 +14,13 @@ in { admin_user = "andrea"; admin_password = "$__file{${config.age.secrets.grafana-password.path}}"; }; + smtp = { + enabled = true; + host = "smtp.autistici.org:587"; + user = "andrea.ciceri@autistici.org"; + from_address = "andrea.ciceri@autistici.org"; + password = "$__file{${config.age.secrets.autistici-password.path}}"; + }; }; }; environment.persistence."/persist".directories = [