update flake, add mail backup and fix formatting

This commit is contained in:
2024-11-17 20:55:11 +01:00
parent 391c15be69
commit cd7cc0cea1
12 changed files with 487 additions and 434 deletions

View File

@ -12,6 +12,8 @@ in {
sops.defaultSopsFile = ./secrets.yaml;
sops.secrets."gitea.env" = {};
sops.secrets."keycloak_db_pw" = {};
sops.secrets."restic_mail_repository_password" = {};
sops.secrets."restic_ssh_key" = {};
imports = [
./mail.nix
@ -248,6 +250,24 @@ in {
};
};
restic = {
backups = {
mail = {
repository = "sftp:u169497-sub5@u169497.your-storagebox.de:mail";
initialize = true;
extraOptions = [
"sftp.command='ssh -p23 u169497-sub5@u169497.your-storagebox.de -i ${config.sops.secrets."restic_ssh_key".path} -s sftp'"
];
passwordFile = config.sops.secrets."restic_mail_repository_password".path;
paths = ["/var/vmail" "/var/dkim"];
timerConfig = {
OnCalendar = "00:05";
RandomizedDelaySec = "1h";
};
};
};
};
# keycloak = {
# enable = true;
#