From 2329799c87e28cab4ca78d325f27f6d53d348b66 Mon Sep 17 00:00:00 2001 From: catvayor Date: Wed, 22 May 2024 19:03:07 +0200 Subject: [PATCH] feat(monitoring): Add adminGroup emails --- modules/dgn-notify/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/dgn-notify/default.nix b/modules/dgn-notify/default.nix index 174aa2f..8081c92 100644 --- a/modules/dgn-notify/default.nix +++ b/modules/dgn-notify/default.nix @@ -16,7 +16,11 @@ let ; emails = concatStringsSep ", " ( - builtins.map (name: meta.organization.members.${name}.email) nodeMeta.admins + builtins.map (name: meta.organization.members.${name}.email) ( + builtins.foldl' ( + admins: group: admins ++ meta.organization.groups.${group} + ) nodeMeta.admins nodeMeta.adminGroups + ) ); cfg = config.dgn-notify;