nixos-config/hosts/chunk/forgejo.nix
cy 876cb663b1
Some checks are pending
build and cache random stuff / build (.#attic-client) (push) Waiting to run
build and cache random stuff / build (.#attic-server) (push) Waiting to run
build and cache random stuff / build (.#conduwuit) (push) Waiting to run
build and cache random stuff / build (.#eza) (push) Waiting to run
nix flake and fmt check / flake-check (push) Waiting to run
mirror to gitlab / build (push) Waiting to run
migrate to forgejo
2025-01-10 01:27:05 -05:00

28 lines
583 B
Nix

{...}:
{
services.forgejo = {
enable = true;
user = "git";
group = "git";
settings = {
server = {
ROOT_URL = "https://git.cy7.sh";
HTTP_PORT = 3000;
HTTP_ADDR = "127.0.0.1";
DOMAIN = "git.cy7.sh";
};
session.COOKIE_SECURE = true;
service.DISABLE_REGISTRATION = true;
ui = {
AMBIGUOUS_UNICODE_DETECTION = false;
DEFAULT_THEME = "gitea-dark";
};
};
database = {
type = "postgres";
socket = "/run/postgresql";
user = "git";
name = "git";
};
};
}