pvv-nixos-config/hosts/bicep/services/mysql.nix

20 lines
367 B
Nix

{ pkgs, config, ... }:
{
services.mysql = {
enable = true;
dataDir = "/data/mysql";
package = pkgs.mariadb;
settings = {
mysqld = {
# PVV allows a lot of connections at the same time
max_connect_errors = 10000;
};
};
};
services.mysqlBackup = {
enable = true;
location = "/var/lib/mysql/backups";
};
}