blob: 26e2928a2bf2a8be871ce5028fd7b3f355d0e0ae [file] [log] [blame]
Skyler Grey4f3e6062023-03-04 01:29:29 +00001{ config, pkgs, ... }: {
2 environment.systemPackages = with pkgs; [ gh git ];
3
4 services.gitea = {
5 enable = true;
6 rootUrl = "https://git.clicks.codes/";
7 httpPort = 6064;
8 settings.mailer = {
9 ENABLED = true;
10 FROM = "git@clicks.codes";
11 PROTOCOL = "smtps";
12 SMTP_ADDR = "smtp.coded.codes";
13 SMTP_PORT = "465";
14 USER = "git@clicks.codes";
15 PASSWD = "ilIfASM@U5Z4XOEoH99gA8jPvGiOiEdx";
16 HELO_HOSTNAME = "git.clicks.codes";
17 };
18 settings.service = {
19 REGISTER_EMAIL_CONFIG = false;
20 ENABLE_NOTIFY_MAIL = false;
21 DISABLE_REGISTRATION = true;
22 ENABLE_CAPTCHA = false;
23 REQUIRE_SIGNIN_VIEW = false;
24 DEFAULT_KEEP_EMAIL_PRIVATE = false;
25 DEFAULT_ENABLE_TIMETRACKING = true;
26 };
27 settings.server = {
28 SSH_DOMAIN = "ssh.clicks.codes";
29 DOMAIN = "localhost";
30 DISABLE_SSH = false;
31 OFFLINE_MODE = false;
32 };
33 settings.openid.ENABLE_OPENID_SIGNIN = true;
34 settings.log = {
35 MODE = "console";
36 LEVEL = "Info";
37 ROUTER = "console";
38 };
39 settings.repository = {
40 ENABLE_PUSH_CREATE_USER = true;
41 ENABLE_PUSH_CREATE_ORG = true;
42 };
43 settings."repository.pull-request".DEFAULT_MERGE_STYLE = "merge";
44 settings."repository.signing".DEFAULT_TRUST_MODEL = "committer";
45 settings.security = {
46 INSTALL_LOCK = true;
47 PASSWORD_HASH_ALGO = "pbkdf2";
48 };
49 settings.indexer = {
50 REPO_INDEXER_ENABLED = true;
51 UPDATE_BUFFER_LEN = 20;
52 MAX_FILE_SIZE = 1048576;
53 };
54 settings.session.PROVIDER = "file";
55 };
56}