a
This commit is contained in:
parent
727ba4a305
commit
3888d4fdba
|
@ -16,7 +16,7 @@ in {
|
|||
mailConfig.dkim.directory
|
||||
];
|
||||
|
||||
repository = "s3:s3.eu-central-003.backblazeb2.com/Chaos-Backups/Restic/Mail";
|
||||
repository = "s3:s3.eu-central-003.backblazeb2.com/Chaos-Restic/Mail";
|
||||
passwordFile = "${secrets.restic_password.path}";
|
||||
environmentFile = "${secrets.restic_env.path}";
|
||||
createWrapper = true;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
};
|
||||
|
||||
requiredVaultPaths = [
|
||||
"api-keys/data/backblaze/Chaos-Backups"
|
||||
"api-keys/data/backblaze/Backups"
|
||||
"api-keys/data/chaos_mail/system"
|
||||
"api-keys/data/chaos_mail/gotosocial"
|
||||
"passwords/data/mail"
|
||||
|
@ -33,8 +33,8 @@
|
|||
restic_env = {
|
||||
fetchScript = ''
|
||||
cat << EOF > "$secretFile"
|
||||
AWS_ACCESS_KEY_ID=$(simple_get "/api-keys/backblaze/Chaos-Backups" .keyID)
|
||||
AWS_SECRET_ACCESS_KEY=$(simple_get "/api-keys/backblaze/Chaos-Backups" .applicationKey)
|
||||
AWS_ACCESS_KEY_ID=$(simple_get "/api-keys/backblaze/Backups" .keyID)
|
||||
AWS_SECRET_ACCESS_KEY=$(simple_get "/api-keys/backblaze/Backups" .applicationKey)
|
||||
EOF
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[Storage]
|
||||
type = combine
|
||||
upstreams = "Backups=B2:Chaos-Backups" "Photos=B2:Chaos-Photos" "Music=B2:Chaos-Music" "Public=B2:Chaos-Public" "Notes=Notes:" "Personal=B2:Chaos-Personal" "Uploads=B2:Chaos-Uploads"
|
||||
upstreams = "Music=B2:Chaos-Music" "Public=B2:Chaos-Public" "Notes=Notes:" "Uploads=B2:Chaos-Uploads"
|
||||
|
||||
[B2]
|
||||
type = b2
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
inherit (config.services.secrets) secrets;
|
||||
backupSchedules = import "${self}/data/backupSchedules.nix";
|
||||
|
||||
repoRoot = "s3:s3.eu-central-003.backblazeb2.com/Chaos-Backups/Restic";
|
||||
repoRoot = "s3:s3.eu-central-003.backblazeb2.com/Chaos-Restic";
|
||||
in {
|
||||
environment.systemPackages = [
|
||||
# TODO: add ones in container too
|
||||
|
|
Loading…
Reference in a new issue