service/drive: init from legacy and enable mail on error

This commit is contained in:
Felix Buehler 2023-03-19 16:14:20 +01:00
parent ea873305c8
commit 7bea060e81
7 changed files with 49 additions and 6 deletions

View file

@ -81,7 +81,7 @@ in
config = lib.mkIf cfg.enable {
# mails can only be delivered if postfix is available
services.postfix.enable = cfg.OnFailureMail != null;
services.postfix.enable = lib.mkIf (cfg.OnFailureMail != null) true;
services.borgbackup.jobs.hetzner = {
# always backup everything and only define excludes