formatting and change owner of secret

This commit is contained in:
Kopatz
2025-02-10 11:29:54 +01:00
parent 68b5d9ce38
commit 67c3a21777

View File

@@ -5,9 +5,8 @@ let
source ${config.age.secrets.webhook-smartd.path}
MSG=$(
${pkgs.coreutils}/bin/cat <<EOF
Problem detected with disk: $SMARTD_DEVICESTRING
Warning message from smartd is:
**Problem detected with disk**: $SMARTD_DEVICESTRING
**Warning message from smartd is**:
$SMARTD_FULLMESSAGE
EOF
)
@@ -24,9 +23,11 @@ in {
enable = lib.mkEnableOption "Enables smartd monitoring";
};
config = lib.mkIf cfg.enable {
age.secrets.webhook-smartd = {
file = ../../secrets/webhook.age;
mode = "444";
age.secrets.webhook-smartd = {
file = ../../secrets/webhook.age; #File contains WEBHOOK_URL="https://discord.com/api/webhooks/..."
owner = "root";
group = "root";
mode = "400";
};
services.smartd = {