2024-08-12 15:56:45 +02:00
|
|
|
{ config, ... }:
|
|
|
|
{
|
2024-08-12 16:06:40 +02:00
|
|
|
sops.secrets.smtp_address = { };
|
|
|
|
sops.secrets.smtp_password = { };
|
2024-08-12 15:56:45 +02:00
|
|
|
|
|
|
|
services.forgejo = {
|
|
|
|
enable = true;
|
|
|
|
lfs.enable = true;
|
|
|
|
database = {
|
|
|
|
type = "postgres";
|
|
|
|
};
|
2024-08-12 16:06:40 +02:00
|
|
|
settings = {
|
|
|
|
server = {
|
|
|
|
DOMAIN = "git.hypervirtual.world";
|
|
|
|
ROOT_URL = "https://hypervirtual.world";
|
|
|
|
HTTP_PORT = 3000;
|
|
|
|
};
|
|
|
|
actions = {
|
|
|
|
ENABLED = true;
|
|
|
|
DEFAULT_ACTIONS_URL = "github";
|
|
|
|
};
|
|
|
|
mailer = {
|
2024-08-12 15:56:45 +02:00
|
|
|
ENABLED = true;
|
|
|
|
SMTP_ADDR = config.sops.secrets.smtp_address;
|
|
|
|
};
|
2024-08-12 16:08:22 +02:00
|
|
|
service.DISABLE_REGISTRATION = true;
|
2024-08-12 16:06:40 +02:00
|
|
|
};
|
2024-08-12 15:56:45 +02:00
|
|
|
mailerPasswordFile = config.sops.secrets.smtp_password.path;
|
|
|
|
};
|
|
|
|
}
|