aboutsummaryrefslogtreecommitdiff
path: root/modules/private/system/backup-2.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/private/system/backup-2.nix')
-rw-r--r--modules/private/system/backup-2.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/private/system/backup-2.nix b/modules/private/system/backup-2.nix
index 3120a57..0e94a1a 100644
--- a/modules/private/system/backup-2.nix
+++ b/modules/private/system/backup-2.nix
@@ -61,6 +61,22 @@
61 }; 61 };
62 }; 62 };
63 }; 63 };
64 mariadb = {
65 enable = true;
66 base = "/backup2";
67 hosts = {
68 eldiron = {
69 serverId = 2;
70 # mysql resolves "backup-2" host and checks the ip, but uses /etc/hosts which only contains ip4
71 host = myconfig.env.servers.eldiron.ips.main.ip4;
72 port = "3306";
73 user = "backup-2";
74 password = myconfig.env.ldap.backup-2.password;
75 dumpUser = "root";
76 dumpPassword = myconfig.env.databases.mysql.systemUsers.root;
77 };
78 };
79 };
64 }; 80 };
65 81
66 # This value determines the NixOS release with which your system is 82 # This value determines the NixOS release with which your system is