1
0
Fork 0
pvv-nixos-config/hosts/bicep/services/mysql.nix

20 lines
367 B
Nix
Raw Normal View History

2023-05-18 15:40:13 +02:00
{ 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";
};
}