From 5a48cedb58c1d740166d19af95cc346697122c67 Mon Sep 17 00:00:00 2001 From: eyjhb Date: Sat, 24 Aug 2024 22:18:05 +0200 Subject: [PATCH] gerd.forgejo: moved to postgresql instead of sqlite --- machines/gerd/services/forgejo/forgejo.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/machines/gerd/services/forgejo/forgejo.nix b/machines/gerd/services/forgejo/forgejo.nix index 1ea2383..eb6e0b8 100644 --- a/machines/gerd/services/forgejo/forgejo.nix +++ b/machines/gerd/services/forgejo/forgejo.nix @@ -2,10 +2,10 @@ let svc_domain = "git.${config.mine.shared.settings.domain}"; - in { services.forgejo = { enable = true; + stateDir = config.mine.zfsMounts."rpool/safe/svcs/forgejo"; package = pkgs.forgejo.overrideAttrs (old: { patches = old.patches ++ [ @@ -14,7 +14,9 @@ in { ]; }); - stateDir = config.mine.zfsMounts."rpool/safe/svcs/forgejo"; + # use postgres, will create and start postgresql + # itself, as well as databdase and user + database.type = "postgres"; settings = { server = {