diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-11-11 10:08:20 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-11-11 10:08:20 +0100 |
commit | ec9b656476d4af2784aea29b846bead85dc46e16 (patch) | |
tree | 5ccc67f136be73786d05ce28aeb0ec978637f5a3 /modules/private/system | |
parent | 285380fe566700ab3bf4f69b0a1a10fb4d9bba3a (diff) | |
download | Nix-ec9b656476d4af2784aea29b846bead85dc46e16.tar.gz Nix-ec9b656476d4af2784aea29b846bead85dc46e16.tar.zst Nix-ec9b656476d4af2784aea29b846bead85dc46e16.zip |
Add postgresql replication for backup-2
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 |