add backup secrets to config for hosts
This commit is contained in:
parent
c43341a8b2
commit
3fccfe3b67
25 changed files with 242 additions and 75 deletions
11
nixos/modules/profiles/backup.nix
Normal file
11
nixos/modules/profiles/backup.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ config, secretsPath, ... }:
|
||||
{
|
||||
dadada.backupClient.bs = {
|
||||
enable = true;
|
||||
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 = "${toString secretsPath}/${config.networking.hostName}-backup-passphrase.age";
|
||||
age.secrets."${config.networking.hostName}-backup-ssh-key".file = "${toString secretsPath}/${config.networking.hostName}n-backup-ssh-key.age";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue