migrate to forgejo
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

This commit is contained in:
cy 2025-01-10 01:27:05 -05:00
parent d506bc2b6a
commit 876cb663b1
3 changed files with 42 additions and 23 deletions

28
hosts/chunk/forgejo.nix Normal file
View file

@ -0,0 +1,28 @@
{...}:
{
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";
};
};
}