nix-config/features/services/forgejo.nix

33 lines
690 B
Nix
Raw Normal View History

2024-08-12 15:56:45 +02:00
{ config, ... }:
{
2024-08-12 17:11:08 +02:00
imports = [ ./forgejo-smtp.nix ];
2024-08-12 16:06:40 +02:00
sops.secrets.smtp_address = { };
2024-08-12 18:11:49 +02:00
sops.secrets.smtp_password = {
owner = "forgejo";
};
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;
};
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;
};
}