Make send-to-telegram work for all users

This commit is contained in:
Andreas Zweili 2024-04-17 22:36:37 +02:00
parent 8c422e2c85
commit 3a3e866351
1 changed files with 4 additions and 1 deletions

View File

@ -29,7 +29,10 @@ in
};
config = lib.mkIf cfg.enable {
age.secrets.telegramNotifyEnv.file = "${inputs.self}/scrts/telegram_notify_env.age";
age.secrets.telegramNotifyEnv = {
file = "${inputs.self}/scrts/telegram_notify_env.age";
mode = "644";
};
environment.systemPackages = [ send-to-telegram ];
systemd.services."unit-status-telegram@" = {
description = "Unit Status Telegram Service";