From b9d992bb1d80677d0f8e70a2ec5bf86983dba22c Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Tue, 20 Sep 2022 21:25:26 +0300 Subject: 2022-09-20 --- modules/nixfiles/git.nix | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/modules/nixfiles/git.nix b/modules/nixfiles/git.nix index bccb4b3..c7a2ba6 100644 --- a/modules/nixfiles/git.nix +++ b/modules/nixfiles/git.nix @@ -152,10 +152,6 @@ in { virtualHosts.${cfg.server.domain} = { locations = { "/".extraConfig = let - projectList = pkgs.writeText "cgit-project-list" '' - nixfiles.git - ''; - cgitrc = pkgs.writeText "cgitrc" '' root-title=azahi’s git stuff root-desc=鯛も一人はうまからず @@ -164,19 +160,8 @@ in { source-filter=${cfg.server.package}/lib/cgit/filters/syntax-highlighting.py commit-filter=${cfg.server.package}/lib/cgit/filters/commit-links.sh - enable-blame=1 - enable-commit-graph=1 - enable-follow-links=1 enable-git-config=1 - enable-html-serving=1 - enable-index-links=1 - enable-index-owner=1 - enable-log-filecount=1 - enable-log-linecount=1 - enable-remote-branches=1 - enable-subject-links=1 - enable-tree-linenumbers=1 - + enable-gitweb-owner=1 remove-suffix=1 snapshots=tar.gz tar.bz2 zip @@ -190,7 +175,6 @@ in { readme=:readme.org readme=:readme.txt - project-list=${projectList} scan-path=${config.services.gitolite.dataDir}/repositories ''; in '' @@ -215,6 +199,7 @@ in { group = "git"; in { gitolite = { + # TODO Make configuration purely declarative. enable = true; inherit user group; adminPubkey = my.ssh.key; -- cgit 1.4.1