gorgon: set up offsite backup

This commit is contained in:
Tim Schubert 2023-06-18 14:34:42 +02:00
parent 8dcc5a1f2f
commit 57d04d981f
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
3 changed files with 45 additions and 1 deletions

View file

@ -42,9 +42,17 @@ let
in
{
imports = [
../modules/profiles/laptop.nix
./hardware-configuration.nix
];
dadada.backupClient.backup2 = {
enable = true;
passphrasePath = config.age.secrets."${config.networking.hostName}-backup-passphrase".path;
sshIdentityFile = config.age.secrets."${config.networking.hostName}-backup-ssh-key".path;
repo = "u355513-sub1@u355513-sub1.your-storagebox.de:/home/backup";
};
nix.extraOptions = ''
experimental-features = nix-command flakes
# Prevent garbage collection for nix shell and direnv