backup: got it working for email + some improvements

This commit is contained in:
silver 2023-07-15 14:51:11 +01:00
parent 03fa2255c3
commit 3a28291933
2 changed files with 28 additions and 18 deletions

View file

@ -16,13 +16,6 @@
./dns.nix
];
/*
backups = [
"/var/vmail"
"/var/dkim"
];
*/
options.services.skynet_email = {
# options that need to be passed in to make this work
@ -94,6 +87,13 @@
};
config = mkIf cfg.enable {
services.skynet_backup = {
normal.backups = [
"/var/vmail"
"/var/dkim"
];
host = { ip = cfg.host.ip; name = cfg.host.name; };
};
age.secrets.ldap_pw.file = ../secrets/ldap/pw.age;