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