From e117efb1549b0c200e8932a2ea8ffefe9ba442c2 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 29 May 2022 07:34:32 -0700 Subject: feat(cgit): update cgit configuration - enable git configuration to read the section out of it - don't display the owner (it's git by default) - sort branches and repositories by age Change-Id: I3f21ec6eb25747d21c23a68b6f24f7cb8345fb02 Reviewed-on: https://cl.fcuny.net/c/world/+/125 Reviewed-by: Franck Cuny --- modules/services/cgit/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/services') diff --git a/modules/services/cgit/default.nix b/modules/services/cgit/default.nix index 9d7cb9a..7abe537 100644 --- a/modules/services/cgit/default.nix +++ b/modules/services/cgit/default.nix @@ -12,6 +12,15 @@ let source-filter=${pkgs.cgit}/lib/cgit/filters/syntax-highlighting.py about-filter=${pkgs.cgit}/lib/cgit/filters/about-formatting.sh + enable-git-config=1 + enable-index-owner=0 + + remove-suffix=1 + + # sort repositories by section and branches by date + repository-sort=age + branch-sort=age + readme=:README.md readme=:README.org readme=:readme.org -- cgit 1.4.1