mob next [ci-skip] [ci skip] [skip ci]

lastFile:modules/nixos/think-greater-cm.nix
This commit is contained in:
2025-11-20 11:08:12 +07:00
parent 9757596363
commit 0462caeaa9

View File

@@ -229,5 +229,19 @@ in
''; '';
}; };
}; };
services.mysql = {
enable = true;
package = pkgs.mariadb;
ensureDatabases = [ cfg.settings.DB_DATABASE ];
ensureUsers = [
{
name = cfg.settings.DB_USERNAME;
ensurePermissions = {
"${cfg.settings.DB_DATABASE}.*" = "ALL PRIVILEGES";
};
}
];
};
}; };
} }