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 = {