Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
peterablehmann committed Jul 17, 2024
1 parent 95d528a commit ad50ef8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/common/backup.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ in
"u371467.your-storagebox.de".publicKey = "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5EB5p/5Hp3hGW1oHok+PIOH9Pbn7cnUiGmUEBrCVjnAw+HrKyN8bYVV0dIGllswYXwkG/+bgiBlE6IVIBAq+JwVWu1Sss3KarHY3OvFJUXZoZyRRg/Gc/+LRCE7lyKpwWQ70dbelGRyyJFH36eNv6ySXoUYtGkwlU5IVaHPApOxe4LHPZa/qhSRbPo2hwoh0orCtgejRebNtW5nlx00DNFgsvn8Svz2cIYLxsPVzKgUxs8Zxsxgn+Q/UvR7uq4AbAhyBMLxv7DjJ1pc7PJocuTno2Rw9uMZi1gkjbnmiOh6TTXIEWbnroyIhwc8555uto9melEUmWNQ+C+PwAK+MPw==";
};
};
services.restic.backups."${config.networking.hostName}-hetzner" = mkResticConfig { repository = "sftp://[email protected]:22//backup"; inherit (cfg) paths exclude; };
services.restic.backups."${config.networking.hostName}-wasabi" = mkResticConfig { repository = "s3:https://s3.eu-central-2.wasabisys.com/backup-xnee-net"; environmentFile = config.sops.secrets."backup/wasabi".path; inherit (cfg) paths exclude; };
services.restic.backups."${config.networking.hostName}-heptifili" = mkResticConfig { repository = "rest:https://restic.heptifili.xnee.net/nix-servers/user"; environmentFile = config.sops.secrets."backup/heptifili".path; inherit (cfg) paths exclude; };
services.restic.backups = {
"${config.networking.hostName}-hetzner" = mkResticConfig { repository = "sftp://[email protected]:22//backup"; inherit (cfg) paths exclude; };
"${config.networking.hostName}-wasabi" = mkResticConfig { repository = "s3:https://s3.eu-central-2.wasabisys.com/backup-xnee-net"; environmentFile = config.sops.secrets."backup/wasabi".path; inherit (cfg) paths exclude; };
"${config.networking.hostName}-heptifili" = mkResticConfig { repository = "rest:https://restic.heptifili.xnee.net/nix-servers/user"; environmentFile = config.sops.secrets."backup/heptifili".path; inherit (cfg) paths exclude; };
};
};
}

0 comments on commit ad50ef8

Please sign in to comment.