From 2e66319cfc90f0eb850558a7106258f7dc5dbc12 Mon Sep 17 00:00:00 2001 From: George Date: Fri, 29 May 2026 20:17:08 +0300 Subject: [PATCH] fix(gitea)?: postgres socket peer auth for gitea --- nixos/system/hectic-lab/hectic-lab.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/system/hectic-lab/hectic-lab.nix b/nixos/system/hectic-lab/hectic-lab.nix index 6bdb4d9..24bb4b3 100644 --- a/nixos/system/hectic-lab/hectic-lab.nix +++ b/nixos/system/hectic-lab/hectic-lab.nix @@ -340,7 +340,10 @@ in { database = { createDatabase = false; type = "postgres"; + user = "gitea"; + name = "gitea"; + socket = "/run/postgresql"; }; }; @@ -353,6 +356,9 @@ in { ensureDBOwnership = true; } ]; + authentication = ''' + local gitea gitea peer + '''; }; };