mirror of
https://forge.katzen.cafe/katzen-cafe/katzen-cafe.git
synced 2024-11-29 00:38:43 +01:00
51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{ pkgs, pkgsUnstable, ... }:
|
|
{
|
|
services.gitea = {
|
|
enable = true;
|
|
package = pkgsUnstable.forgejo;
|
|
repositoryRoot = "/forgejo/repos";
|
|
appName = "Katzenschmiede";
|
|
database = {
|
|
type = "postgres";
|
|
};
|
|
settings = {
|
|
openid = {
|
|
ENABLE_OPENID_SIGNIN = true;
|
|
};
|
|
federation = {
|
|
ENABLED = true;
|
|
};
|
|
server = {
|
|
ROOT_URL = "https://forge.katzen.cafe/";
|
|
HTTP_PORT = 8082;
|
|
DOMAIN = "forge.katzen.cafe";
|
|
START_SSH_SERVER = true;
|
|
SSH_PORT = 2222;
|
|
};
|
|
service = {
|
|
REGISTER_MANUAL_CONFIRM = true;
|
|
SHOW_REGISTRATION_BUTTON = false;
|
|
};
|
|
actions = {
|
|
ENABLED = true;
|
|
};
|
|
mailer = {
|
|
ENABLED = true;
|
|
FROM = "noreply@katzen.cafe";
|
|
PROTOCOL = "smtps";
|
|
SMTP_ADDR = "mail.katzen.cafe";
|
|
SMTP_PORT = 465;
|
|
USER = "noreply@katzen.cafe";
|
|
};
|
|
};
|
|
mailerPasswordFile = "/var/lib/secrets/noreply-mail-pw-plain";
|
|
};
|
|
deployment.keys = {
|
|
"noreply-mail-pw-plain" = {
|
|
keyCommand = [ "pass" "mailpws/plain/noreply" ];
|
|
destDir = "/var/lib/secrets";
|
|
permissions = "0604";
|
|
};
|
|
};
|
|
}
|