summaryrefslogtreecommitdiff
path: root/modules/nixos/profiles
diff options
context:
space:
mode:
authorSeth Flynn <[email protected]>2025-04-03 04:06:41 -0400
committerSeth Flynn <[email protected]>2025-04-03 07:42:02 -0400
commitdb76d5cde3efa16cf49a6a80a55ce4c37dcd96aa (patch)
tree9f97be84c7c4d53114bc30aa7c42379ad2331b1e /modules/nixos/profiles
parent62a139b99eaaf8735c132bec52d2fe412647eccf (diff)
nixos/server: enable systemd-discord-notifier
Diffstat (limited to 'modules/nixos/profiles')
-rw-r--r--modules/nixos/profiles/server.nix12
1 files changed, 12 insertions, 0 deletions
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;