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