19 lines
340 B
Nix
19 lines
340 B
Nix
|
{pkgs, ...}: {
|
||
|
services.mysql = {
|
||
|
enable = true;
|
||
|
package = pkgs.mariadb;
|
||
|
dataDir = "/var/lib/mysql";
|
||
|
initialDatabases = [
|
||
|
{ name = "minecraft"; }
|
||
|
];
|
||
|
ensureUsers = [
|
||
|
{
|
||
|
name = "minecraft";
|
||
|
ensurePermissions = {
|
||
|
"minecraft.*" = "ALL PRIVILEGES";
|
||
|
};
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
}
|