backup: got it working for email + some improvements
This commit is contained in:
parent
03fa2255c3
commit
3a28291933
2 changed files with 28 additions and 18 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue