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 | 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 | } |