restic: separate backup repository per host

This commit is contained in:
Noah Masur
2026-09-29 01:40:05 +00:00
parent acace54649
commit 4299074dff
2 changed files with 9 additions and 1 deletions
@@ -44,7 +44,8 @@ in
services.restic.backups = {
default = {
repository = "s3:${cfg.s3.endpoint}/${cfg.s3.bucket}/restic";
repository = "s3:${cfg.s3.endpoint}/${cfg.s3.bucket}/restic/${config.networking.hostName}";
initialize = true;
paths = [ ];
environmentFile = config.secrets.restic-s3-creds.dest;
passwordFile = config.secrets.restic.dest;