feat(user/malte): database extensions
This commit is contained in:
parent
12aca47c92
commit
ea02091bfd
|
@ -59,13 +59,12 @@ in {
|
||||||
services.mysql = {
|
services.mysql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.mariadb;
|
package = pkgs.mariadb;
|
||||||
ensureDatabases = ["notenbuch"];
|
ensureDatabases = ["notenbuch" "gnomen"];
|
||||||
ensureUsers = [
|
ensureUsers = [
|
||||||
{
|
{
|
||||||
name = "malte";
|
name = "malte";
|
||||||
ensurePermissions = {
|
ensurePermissions = {
|
||||||
"notenbuch.*" = "ALL PRIVILEGES";
|
"*.*" = "ALL PRIVILEGES";
|
||||||
"*.*" = "CREATE USER, GRANT OPTION, RELOAD, SELECT, DROP";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue