snowflake/hosts/sakura/services/forgejo.nix

37 lines
765 B
Nix
Raw Normal View History

2023-06-18 17:35:31 -04:00
{
pkgs,
config,
lib,
...
}: {
2023-05-28 22:00:50 -04:00
services.gitea = {
enable = true;
package = pkgs.forgejo;
appName = "forgejo";
2023-06-18 17:35:31 -04:00
stateDir = "/var/lib/forgejo";
2023-05-28 22:00:50 -04:00
settings = {
2023-06-18 17:35:31 -04:00
service.DISABLE_REGISTRATION = false;
2023-06-18 03:28:27 -04:00
ui = {
DEFAULT_THEME = "forgejo-dark";
};
2023-06-06 00:09:09 -04:00
actions = {
ENABLED = true;
DEFAULT_ACTIONS_URL = "https://gitea.com";
};
2023-05-28 22:00:50 -04:00
server = {
2023-06-11 07:48:54 -04:00
HTTP_PORT = 3200;
2023-05-28 22:00:50 -04:00
DOMAIN = "git.notohh.dev";
ROOT_URL = "https://git.notohh.dev";
LANDING_PAGE = "/explore/repos";
};
2023-06-18 17:35:31 -04:00
database = {
DB_TYPE = lib.mkForce "postgres";
HOST = "192.168.1.211:5432";
NAME = "forgejo";
USER = "forgejo";
PASSWD = "forgejo";
};
2023-05-28 22:00:50 -04:00
};
};
}