infra/puter/030-vm-nixos-neru/specific-aspect/repo-website/forgejo.nix

56 lines
1.5 KiB
Nix
Raw Normal View History

2025-12-01 13:23:24 +07:00
_:
{
den.aspects = {
neru = {
nixos =
{ lib, pkgs, config, ... }:
{
services.forgejo = {
enable = true;
database.type = "postgres";
lfs.enable = true;
settings = {
DEFAULT = {
APP_NAME = "EXPERIMENTING Repo";
APP_SLOGAN = "love you";
};
repository = {
DISABLE_STARS = true;
};
server = {
DOMAIN = "repo.experimenting.website";
ROOT_URL = "https://repo.experimenting.website/";
HTTP_PORT = 3000;
SSH_PORT = lib.head config.services.openssh.ports;
LANDING_PAGE = "explore";
};
other = {
SHOW_FOOTER_VERSION = false;
SHOW_FOOTER_TEMPLATE_LOAD_TIME = false;
SHOW_FOOTER_POWERED_BY = false;
};
service.DISABLE_REGISTRATION = true;
actions = {
ENABLED = true;
DEFAULT_ACTIONS_URL = "github";
};
};
};
services.postgresql = {
enable = true;
};
security.acme = {
acceptTerms = true;
defaults.email = _.config.meta.kirbara.email;
};
services = {
openssh.settings.AcceptEnv = "GIT_PROTOCOL";
};
};
};
};
}