nix-config/features/services/forgejo.nix
2024-08-12 15:56:45 +02:00

31 lines
638 B
Nix

{ config, ... }:
{
sops.secrets.smtp_address = {};
sops.secrets.smtp_password = {};
services.forgejo = {
enable = true;
lfs.enable = true;
service.DISABLE_REGISTRATION = true;
database = {
type = "postgres";
};
server = {
DOMAIN = "git.hypervirtual.world";
ROOT_URL = "https://hypervirtual.world";
HTTP_PORT = 3000;
};
actions = {
ENABLED = true;
DEFAULT_ACTIONS_URL = "github";
};
mailer = {
ENABLED = true;
SMTP_ADDR = config.sops.secrets.smtp_address;
};
mailerPasswordFile = config.sops.secrets.smtp_password.path;
};
}