about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--modules/nixfiles/git.nix19
1 files 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;

Consider giving Nix/NixOS a try! <3