diff options
author | Ben Sima <ben@bsima.me> | 2019-05-12 14:22:29 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2019-05-12 14:25:54 -0700 |
commit | 703c55b0632b2693922648a0555722cb96f13770 (patch) | |
tree | 07c13e9bf6c72b2f7fb6a9598fcaaca15a2e8da8 /depo | |
parent | f5267b709826e5746006d75e3aaa6c692e414cbe (diff) |
add git to infra server
Diffstat (limited to 'depo')
-rw-r--r-- | depo/nutin-madaj/configuration.nix | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/depo/nutin-madaj/configuration.nix b/depo/nutin-madaj/configuration.nix index 919ae1b..5ad9b94 100644 --- a/depo/nutin-madaj/configuration.nix +++ b/depo/nutin-madaj/configuration.nix @@ -4,6 +4,7 @@ let bensIp = "68.107.97.20"; # hiddor-kahih ibbPort = "3000"; fathomPort = "3030"; + gitDir = "/srv/git"; in { nixpkgs.config.allowUnfree = true; @@ -15,6 +16,63 @@ in services = { + gitolite = { + enable = true; + enableGitAnnex = true; + dataDir = "${gitDir}"; + user = "git"; + group = "git"; + extraGitoliteRc = '' + $RC{UMASK} = 0022; + $RC{SITE_INFO} = 'a computer is a bicycle for the mind.'; + $RC{GIT_CONFIG_KEYS} = 'gitweb\.(owner|description|category)'; + ''; + adminPubkey = "${benKey}"; + }; + lighttpd = { + enable = true; + port = 8000; + document-root = "/srv/www"; + mod_userdir = true; + mod_status = true; + collectd = { + enable = true; + }; + cgit = { + # disable cgit for now; the ssh interface still works anyway. + enable = false; + subdir = "git"; + configText = '' + cache-size=0 + clone-url=git@simatime.com:$CGIT_REPO_URL + enable-index-owner=1 + enable-http-clone=0 + enable-index-links=1 + enable-commit-graph=1 + enable-log-filecount=1 + enable-log-linecount=1 + enable-git-config=1 + remove-suffix=1 + branch-sort=age + max-stats=week + mimetype.gif=image/gif + mimetype.html=text/html + mimetype.jpg=image/jpeg + mimetype.jpeg=image/jpeg + mimetype.pdf=application/pdf + mimetype.png=image/png + mimetype.svg=image/svg+xml + about-filter=${pkgs.cgit}/lib/cgit/filters/about-formatting.sh + source-filter=${pkgs.cgit}/lib/cgit/filters/syntax-highlighting.py + readme=:README.md + root-title=simatime git repository + root-desc=a computer is a bicycle for the mind. + project-list=${gitDir}/projects.list + scan-path=${gitDir}/repositories + ''; + }; + }; + ibb = { enable = true; port = ibbPort; |