From f3d2d291c50f3ccf8e17c8e892e7d5b7369e4f1e Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 5 Dec 2023 09:41:12 +0100 Subject: [PATCH] services: gitea: adapt to 23.11 postgres changes --- services/gitea/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/gitea/default.nix b/services/gitea/default.nix index 21c9c43..8ac33b3 100644 --- a/services/gitea/default.nix +++ b/services/gitea/default.nix @@ -85,6 +85,9 @@ in { type = "postgres"; # user needs to be the same as gitea user user = giteaUser; + # FIXME: change database name to match 23.11 postgres changes around ensureDatabase + createDatabase = false; + socket = "/run/postgresql"; }; }; @@ -102,7 +105,7 @@ in { # NOTE: no need to use postgresql.ensureDatabases because the gitea module # takes care of this automatically services.postgresqlBackup = { - databases = ["gitea"]; + databases = [config.services.gitea.database.name]; }; services.nginx = {