fix restic acces to mail
This commit is contained in:
parent
5207af59d0
commit
6e1e9d1eb1
2 changed files with 18 additions and 20 deletions
36
mail.nix
36
mail.nix
|
|
@ -9,25 +9,25 @@ in {
|
|||
];
|
||||
|
||||
services.restic.backups = {
|
||||
"mail" = {
|
||||
passwordFile = "/etc/nixos/.secrets/restic_pw";
|
||||
repository = "sftp:Glenn@nas:/home/back/mail/restic";
|
||||
initialize = true;
|
||||
paths = [
|
||||
mailDirectory
|
||||
# dkimKeyDirectory
|
||||
];
|
||||
user = "sondell";
|
||||
timerConfig.OnCalendar = "02:05";
|
||||
pruneOpts = [
|
||||
"--keep-daily 10"
|
||||
"--keep-weekly 5"
|
||||
"--keep-monthly 12"
|
||||
"--keep-yearly 75"
|
||||
];
|
||||
};
|
||||
"mail" = {
|
||||
passwordFile = "/etc/nixos/.secrets/restic_pw";
|
||||
repository = "sftp:Glenn@nas:/home/back/mail/restic";
|
||||
initialize = true;
|
||||
paths = [
|
||||
mailDirectory
|
||||
# dkimKeyDirectory
|
||||
];
|
||||
user = "root";
|
||||
timerConfig.OnCalendar = "02:05";
|
||||
pruneOpts = [
|
||||
"--keep-daily 10"
|
||||
"--keep-weekly 5"
|
||||
"--keep-monthly 12"
|
||||
"--keep-yearly 75"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
mailserver = {
|
||||
enable = true;
|
||||
inherit mailDirectory dkimKeyDirectory;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue