};
};
- config.nixpkgs.overlays = lib.mkIf cfg.enable [ (self: super: {
- postgresql = self.postgresql_11_custom;
- }) ];
-
config.myServices.databases = lib.mkIf cfg.enable {
mariadb = {
enable = true;
inherit (config.myEnv.servers.eldiron.ldap) dn password;
};
authorizedHosts = {
- immaeEu = [{
- ip4 = [
- config.myEnv.servers.immaeEu.ips.main.ip4
- config.myEnv.servers.immaeEu.ips.alt.ip4
- ];
- }];
};
replicationHosts = {
- backup-1 = {
- ip4 = [config.myEnv.servers.backup-1.ips.main.ip4];
- ip6 = config.myEnv.servers.backup-1.ips.main.ip6;
- };
backup-2 = {
ip4 = [config.myEnv.servers.backup-2.ips.main.ip4];
ip6 = config.myEnv.servers.backup-2.ips.main.ip6;