mysql: ensureUsers

This commit is contained in:
Simon Gardling 2025-05-07 13:10:11 -04:00
parent 75f94963ba
commit e110f60de6
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -123,5 +123,19 @@
services.mysql = {
enable = true;
package = pkgs.mariadb;
ensureUsers = [
{
name = "root";
ensurePermissions = {
"*.*" = "ALL PRIVILEGES";
};
}
{
name = "${username}";
ensurePermissions = {
"*.*" = "ALL PRIVILEGES";
};
}
];
};
}