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 = { services.gitea = {
enable = true; enable = true;
package = pkgs.forgejo; package = pkgs.forgejo;
appName = "forgejo"; appName = "forgejo";
stateDir = "/sakura/forgejo"; stateDir = "/var/lib/forgejo";
settings = { settings = {
service.DISABLE_REGISTRATION = true; service.DISABLE_REGISTRATION = false;
ui = { ui = {
DEFAULT_THEME = "forgejo-dark"; DEFAULT_THEME = "forgejo-dark";
}; };
@ -19,6 +25,13 @@
ROOT_URL = "https://git.notohh.dev"; ROOT_URL = "https://git.notohh.dev";
LANDING_PAGE = "/explore/repos"; LANDING_PAGE = "/explore/repos";
}; };
database = {
DB_TYPE = lib.mkForce "postgres";
HOST = "192.168.1.211:5432";
NAME = "forgejo";
USER = "forgejo";
PASSWD = "forgejo";
};
}; };
}; };
} }