porthos: services: configure backup
This commit is contained in:
parent
471ecd87cc
commit
a0cdd38848
|
@ -6,6 +6,21 @@ in
|
||||||
{
|
{
|
||||||
# List services that you want to enable:
|
# List services that you want to enable:
|
||||||
my.services = {
|
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 forge
|
||||||
gitea.enable = true;
|
gitea.enable = true;
|
||||||
# Meta-indexers
|
# Meta-indexers
|
||||||
|
|
BIN
secrets/backup/credentials.env
Normal file
BIN
secrets/backup/credentials.env
Normal file
Binary file not shown.
BIN
secrets/backup/password.txt
Normal file
BIN
secrets/backup/password.txt
Normal file
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue