diff options
Diffstat (limited to 'modules/private/system')
-rw-r--r-- | modules/private/system/backup-2.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/private/system/backup-2.nix b/modules/private/system/backup-2.nix index 6151671..1c5b7d8 100644 --- a/modules/private/system/backup-2.nix +++ b/modules/private/system/backup-2.nix | |||
@@ -48,6 +48,19 @@ | |||
48 | ssh_key_private = myconfig.env.rsync_backup.ssh_key.private; | 48 | ssh_key_private = myconfig.env.rsync_backup.ssh_key.private; |
49 | }; | 49 | }; |
50 | 50 | ||
51 | myServices.databasesReplication = { | ||
52 | postgresql = { | ||
53 | enable = true; | ||
54 | base = "/backup2"; | ||
55 | hosts = { | ||
56 | eldiron = { | ||
57 | slot = "backup_2"; | ||
58 | connection = "postgresql://backup-2:${myconfig.env.ldap.backup-2.password}@eldiron.immae.eu"; | ||
59 | }; | ||
60 | }; | ||
61 | }; | ||
62 | }; | ||
63 | |||
51 | # This value determines the NixOS release with which your system is | 64 | # This value determines the NixOS release with which your system is |
52 | # to be compatible, in order to avoid breaking some software such as | 65 | # to be compatible, in order to avoid breaking some software such as |
53 | # database servers. You should change this only after NixOS release | 66 | # database servers. You should change this only after NixOS release |