ssh_key_private = myconfig.env.rsync_backup.ssh_key.private;
};
+ myServices.databasesReplication = {
+ postgresql = {
+ enable = true;
+ base = "/backup2";
+ hosts = {
+ eldiron = {
+ slot = "backup_2";
+ connection = "postgresql://backup-2:${myconfig.env.ldap.backup-2.password}@eldiron.immae.eu";
+ };
+ };
+ };
+ };
+
# This value determines the NixOS release with which your system is
# to be compatible, in order to avoid breaking some software such as
# database servers. You should change this only after NixOS release