diff options
| author | Preston Pan <ret2pop@gmail.com> | 2026-02-17 19:21:56 -0800 |
|---|---|---|
| committer | Preston Pan <ret2pop@gmail.com> | 2026-02-17 19:21:56 -0800 |
| commit | 243ebf35c43c9bb6f64c1fd1a51794e55f640780 (patch) | |
| tree | 7aa3f10c69967c5a1641917910306eeb02c7a632 /nix/modules/cgit.nix | |
| parent | 40f5a8b407c0c771005c3f64b72d3c9b9da4c586 (diff) | |
| parent | 9a930ea12bd743e9ca57b70911f8c35d97af3320 (diff) | |
Merge branch 'main' of ret2pop.net:/srv/git/monorepo
Diffstat (limited to 'nix/modules/cgit.nix')
| -rw-r--r-- | nix/modules/cgit.nix | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/nix/modules/cgit.nix b/nix/modules/cgit.nix index cfb9158..54eb90c 100644 --- a/nix/modules/cgit.nix +++ b/nix/modules/cgit.nix @@ -1,6 +1,25 @@ -{ config, lib, ... }: +{ lib, config, ... }: { - services.cgit = { + services.cgit."my-projects" = { enable = true; + scanPath = "/srv/git"; + settings = { + root-title = "Nullring Git Server"; + root-desc = "Projects and cool things"; + enable-commit-graph = 1; + enable-log-filecount = 1; + enable-log-linecount = 1; + enable-index-owner = 0; + clone-prefix = "https://git.${config.monorepo.vars.orgHost}"; + enable-tree-linenumbers = 1; + strict-export = "git-daemon-export-ok"; + }; + gitHttpBackend = { + enable = true; + checkExportOkFiles = true; + }; + nginx = { + virtualHost = "git.${config.monorepo.vars.orgHost}"; + }; }; } |
