pvv-nixos-config/hosts/bicep/services/mysql.nix
2023-05-18 15:40:13 +02:00

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";
};
}