mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-01-19 05:39:34 +01:00
31 lines
683 B
Nix
31 lines
683 B
Nix
{ config, ... }:
|
|
{
|
|
sops.secrets.smtp_address = { };
|
|
sops.secrets.smtp_password = { };
|
|
|
|
services.forgejo = {
|
|
enable = true;
|
|
lfs.enable = true;
|
|
database = {
|
|
type = "postgres";
|
|
};
|
|
settings = {
|
|
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;
|
|
};
|
|
service.DISABLE_REGISTRATION = true;
|
|
};
|
|
mailerPasswordFile = config.sops.secrets.smtp_password.path;
|
|
};
|
|
}
|