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