blob: 747f686e6e7c5a8cae233d0bef87348d0f6ffc4a [file] [log] [blame]
Skyler Grey4f3e6062023-03-04 01:29:29 +00001{ config, pkgs, ... }: {
2 environment.systemPackages = with pkgs; [ gh git ];
3
4 services.gitea = {
Skyler Greya79d1f12023-05-01 21:36:56 +00005 enable = false;
Skyler Grey4f3e6062023-03-04 01:29:29 +00006 settings.mailer = {
7 ENABLED = true;
8 FROM = "git@clicks.codes";
9 PROTOCOL = "smtps";
10 SMTP_ADDR = "smtp.coded.codes";
11 SMTP_PORT = "465";
12 USER = "git@clicks.codes";
13 PASSWD = "ilIfASM@U5Z4XOEoH99gA8jPvGiOiEdx";
14 HELO_HOSTNAME = "git.clicks.codes";
15 };
16 settings.service = {
17 REGISTER_EMAIL_CONFIG = false;
18 ENABLE_NOTIFY_MAIL = false;
19 DISABLE_REGISTRATION = true;
20 ENABLE_CAPTCHA = false;
21 REQUIRE_SIGNIN_VIEW = false;
22 DEFAULT_KEEP_EMAIL_PRIVATE = false;
23 DEFAULT_ENABLE_TIMETRACKING = true;
24 };
25 settings.server = {
Skyler Grey07c947a2023-06-08 14:11:23 +020026 ROOT_URL = "https://git.clicks.codes/";
27 HTTP_PORT = 6064;
Skyler Grey4f3e6062023-03-04 01:29:29 +000028 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}