[
(self: super: {
postgresql = self.postgresql_pam;
- mariadb = self.mariadb_106.overrideAttrs(old: {
+ mariadb = self.mariadb_1011.overrideAttrs(old: {
passthru = old.passthru // { mysqlVersion = "5.7"; };
});
}) # don’t put them as generic overlay because of home-manager
}
) cfg.hosts;
+ environment.systemPackages = lib.mapAttrsToList (name: hcfg:
+ pkgs.writeScriptBin "mysql_backup_${name}" ''
+ #!${pkgs.stdenv.shell}
+
+ exec ${hcfg.package}/bin/mysql -S /run/mysqld_${name}/mysqld.sock "$@"
+ ''
+ ) cfg.hosts;
+
systemd.services = lib.attrsets.mapAttrs' (name: hcfg:
let
dataDir = "${cfg.base}/${name}/mysql";