Skip to content

Commit bfc0a79

Browse files
committed
nixosTests.tandoor-recipes: use 'database.createLocally'
1 parent af59150 commit bfc0a79

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

nixos/tests/tandoor-recipes.nix

+1-23
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,7 @@ import ./make-test-python.nix (
99
{
1010
services.tandoor-recipes = {
1111
enable = true;
12-
extraConfig = {
13-
DB_ENGINE = "django.db.backends.postgresql";
14-
POSTGRES_HOST = "/run/postgresql";
15-
POSTGRES_USER = "tandoor_recipes";
16-
POSTGRES_DB = "tandoor_recipes";
17-
};
18-
};
19-
20-
services.postgresql = {
21-
enable = true;
22-
ensureDatabases = [ "tandoor_recipes" ];
23-
ensureUsers = [
24-
{
25-
name = "tandoor_recipes";
26-
ensureDBOwnership = true;
27-
}
28-
];
29-
};
30-
31-
systemd.services = {
32-
tandoor-recipes = {
33-
after = [ "postgresql.service" ];
34-
};
12+
database.createLocally = true;
3513
};
3614
};
3715

0 commit comments

Comments
 (0)