ninurta: backup to backup2
This commit is contained in:
parent
61bed7f861
commit
af8ce81c90
3 changed files with 9 additions and 3 deletions
|
@ -23,6 +23,7 @@ with lib; let
|
|||
"/var/lib/machines"
|
||||
"/var/log"
|
||||
"/var/tmp"
|
||||
"/swapfile"
|
||||
];
|
||||
cfg = config.dadada.backupClient;
|
||||
in
|
||||
|
|
|
@ -15,6 +15,12 @@ in
|
|||
sshIdentityFile = config.age.secrets."${config.networking.hostName}-backup-ssh-key".path;
|
||||
};
|
||||
|
||||
dadada.backupClient.backup2 = {
|
||||
enable = lib.mkDefault false;
|
||||
passphrasePath = config.age.secrets."${config.networking.hostName}-backup-passphrase".path;
|
||||
sshIdentityFile = config.age.secrets."${config.networking.hostName}-backup-ssh-key".path;
|
||||
};
|
||||
|
||||
age.secrets."${config.networking.hostName}-backup-passphrase".file = "${secretsPath}/${config.networking.hostName}-backup-passphrase.age";
|
||||
age.secrets."${config.networking.hostName}-backup-ssh-key".file = "${secretsPath}/${config.networking.hostName}-backup-ssh-key.age";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue