nixosTests.tandoor-recipes: use 'database.createLocally'

This commit is contained in:
Bruno BELANYI 2025-05-02 17:30:46 +01:00
parent d2741cbfb0
commit edbd8e3ff6

View File

@ -8,29 +8,7 @@
{
services.tandoor-recipes = {
enable = true;
extraConfig = {
DB_ENGINE = "django.db.backends.postgresql";
POSTGRES_HOST = "/run/postgresql";
POSTGRES_USER = "tandoor_recipes";
POSTGRES_DB = "tandoor_recipes";
};
};
services.postgresql = {
enable = true;
ensureDatabases = [ "tandoor_recipes" ];
ensureUsers = [
{
name = "tandoor_recipes";
ensureDBOwnership = true;
}
];
};
systemd.services = {
tandoor-recipes = {
after = [ "postgresql.target" ];
};
database.createLocally = true;
};
};