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 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'modules/nixos') 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; -- cgit v1.2.3