flake/hosts/tyo0/services/forgejo.nix

30 lines
555 B
Nix
Raw Normal View History

{ pkgs, ... }:
{
2024-08-11 10:13:36 +00:00
services.forgejo = {
enable = true;
package = pkgs.forgejo;
database.type = "postgres";
settings = {
2024-08-27 09:08:53 +00:00
DEFAULT = {
APP_NAME = "git.ny4.dev";
};
2024-08-11 10:13:36 +00:00
server = {
DOMAIN = "git.ny4.dev";
PROTOCOL = "http+unix";
ROOT_URL = "https://git.ny4.dev/";
SSH_DOMAIN = "tyo0.ny4.dev";
};
service = {
ALLOW_ONLY_EXTERNAL_REGISTRATION = true;
};
2024-08-27 09:08:53 +00:00
repository = {
DISABLE_STARS = true;
DEFAULT_BRANCH = "master";
};
2024-08-11 10:13:36 +00:00
};
};
}