porthos: services: configure backup

This commit is contained in:
Bruno BELANYI 2021-02-07 12:20:23 +00:00
parent 471ecd87cc
commit a0cdd38848
4 changed files with 15 additions and 0 deletions

View file

@ -6,6 +6,21 @@ in
{
# List services that you want to enable:
my.services = {
# Backblaze B2 backup
backup = {
enable = true;
repository = "b2:porthos-backup";
# Backup every 6 hours
timerConfig = {
OnActiveSec = "6h";
OnUnitActiveSec = "6h";
};
# Insecure, I don't care.
passwordFile =
builtins.toFile "password.txt" my.secrets.backup.password;
credentialsFile =
builtins.toFile "creds.env" my.secrets.backup.credentials;
};
# Gitea forge
gitea.enable = true;
# Meta-indexers

Binary file not shown.

BIN
secrets/backup/password.txt Normal file

Binary file not shown.

Binary file not shown.