forked from Drift/pvv-nixos-config
bicep: set up mysql/mariadb
This commit is contained in:
parent
45ada78304
commit
c11a804097
|
@ -6,6 +6,7 @@
|
|||
../../base.nix
|
||||
./services/nginx
|
||||
|
||||
./services/mysql.nix
|
||||
./services/postgres.nix
|
||||
|
||||
./services/matrix
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
{ 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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue