Skyler Grey | 4f3e606 | 2023-03-04 01:29:29 +0000 | [diff] [blame] | 1 | { config, pkgs, ... }: { |
| 2 | environment.systemPackages = with pkgs; [ gh git ]; |
| 3 | |
| 4 | services.gitea = { |
Skyler Grey | a79d1f1 | 2023-05-01 21:36:56 +0000 | [diff] [blame] | 5 | enable = false; |
Skyler Grey | 4f3e606 | 2023-03-04 01:29:29 +0000 | [diff] [blame] | 6 | 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 Grey | 07c947a | 2023-06-08 14:11:23 +0200 | [diff] [blame^] | 26 | ROOT_URL = "https://git.clicks.codes/"; |
| 27 | HTTP_PORT = 6064; |
Skyler Grey | 4f3e606 | 2023-03-04 01:29:29 +0000 | [diff] [blame] | 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 | } |