{ config, pkgs, lib, ... }: { services.gitea = { enable = true; database = { type = "postgres"; }; settings = { server = { DOMAIN = "git.ocbwoy3.dev"; ROOT_URL = "https://git.ocbwoy3.dev/"; HTTP_PORT = 2222; DISABLE_SSH = true; MAX_UPLOAD_FILE_SIZE = 5242880; }; attachment = { MAX_SIZE = 5; # MB (this is the one causing the 1024 KiB error) }; service = { DISABLE_REGISTRATION = true; }; }; }; }