forgejo: use postgres

This commit is contained in:
notohh 2023-06-18 17:35:31 -04:00
parent 3204926031
commit 6152018038
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -1,11 +1,17 @@
{pkgs, ...}: {
{
pkgs,
config,
lib,
...
}: {
sops.secrets.forgejo-db = {};
services.gitea = {
enable = true;
package = pkgs.forgejo;
appName = "forgejo";
stateDir = "/sakura/forgejo";
stateDir = "/var/lib/forgejo";
settings = {
service.DISABLE_REGISTRATION = true;
service.DISABLE_REGISTRATION = false;
ui = {
DEFAULT_THEME = "forgejo-dark";
};
@ -19,6 +25,13 @@
ROOT_URL = "https://git.notohh.dev";
LANDING_PAGE = "/explore/repos";
};
database = {
DB_TYPE = lib.mkForce "postgres";
HOST = "192.168.1.211:5432";
NAME = "forgejo";
USER = "forgejo";
PASSWD = "forgejo";
};
};
};
}