From db76d5cde3efa16cf49a6a80a55ce4c37dcd96aa Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Thu, 3 Apr 2025 04:06:41 -0400 Subject: nixos/server: enable systemd-discord-notifier --- modules/nixos/profiles/server.nix | 12 ++++++++++++ secrets/atlas/discordWebhookURL.age | 8 ++++++++ 2 files changed, 20 insertions(+) create mode 100644 secrets/atlas/discordWebhookURL.age diff --git a/modules/nixos/profiles/server.nix b/modules/nixos/profiles/server.nix index d7ebee4..c92f27b 100644 --- a/modules/nixos/profiles/server.nix +++ b/modules/nixos/profiles/server.nix @@ -32,6 +32,7 @@ in }; age.secrets = { + discordWebhookURL.file = "${secretsDir}/discordWebhookURL.age"; tailscaleAuthKey.file = "${secretsDir}/tailscaleAuthKey.age"; }; @@ -56,6 +57,17 @@ in }; services = { + systemd-discord-notifier = { + enable = true; + + content = '' + # 🚨 %i.service failed! 🚨 + <@746501080409702461> + ''; + + webhookURLFile = config.age.secrets.discordWebhookURL.path; + }; + tailscale = { enable = true; diff --git a/secrets/atlas/discordWebhookURL.age b/secrets/atlas/discordWebhookURL.age new file mode 100644 index 0000000..c816c63 --- /dev/null +++ b/secrets/atlas/discordWebhookURL.age @@ -0,0 +1,8 @@ +age-encryption.org/v1 +-> X25519 icwxLxS+DQ79q3uw2zUXNaWaKZQ1nzNYlBvw26lpOn4 +bjkKHAqGA9jGbeT+5ETgDXYK5b7sxlrO2QCPYlN/hW0 +-> X25519 yQOyQyCHKYkr5maNXNUsl9MZV7l8i+s/9+rgUHxST08 +oK0vfinA0b5FgL4mM2L5kz4kWevo9znudTxSxCWNpZc +--- W/eWA9B0HcC9zDA94GhhKpqdB0By2KpI4aU+RYtRJJ8 +e5Ku/i M5D}-U^)P cӋau,{MQe4f8KAjm4jkRq~-8|2rhAi:na R4B]r r-~6 k%`Դ +`t \ No newline at end of file -- cgit v1.2.3