diff options
Diffstat (limited to 'modules/nixos/profiles')
| -rw-r--r-- | modules/nixos/profiles/server.nix | 12 |
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; |
