summary refs log tree commit diff
path: root/hosts/vps/services/git.nix
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2023-08-20 15:30:07 +0300
committertzlil <tzlils@protonmail.com>2023-08-20 15:30:07 +0300
commit6197695dfb24f1ae3269359fb9e189b24fdd86a3 (patch)
tree159fbc9b14a87048b5b820044a62f95030b2edb6 /hosts/vps/services/git.nix
parent61a06724bc39e94da259efba3693857bae21949f (diff)
fix dendrite, disable dhcpv6 dns servers
Diffstat (limited to 'hosts/vps/services/git.nix')
-rw-r--r--hosts/vps/services/git.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/hosts/vps/services/git.nix b/hosts/vps/services/git.nix
index 2b6d0a2..84c4241 100644
--- a/hosts/vps/services/git.nix
+++ b/hosts/vps/services/git.nix
@@ -3,7 +3,8 @@
   config,
   ...
 }: {
-  config = let cgit = pkgs.cgit-pink;
+  config = let
+    cgit = pkgs.cgit-pink;
   in {
     users.groups.git = {};
     users.users.git = {
@@ -56,6 +57,8 @@
              transport fastcgi {
                env SCRIPT_FILENAME ${cgit}/cgit/cgit.cgi
                env CGIT_CONFIG ${pkgs.writeText "cgitrc" (pkgs.lib.generators.toKeyValue {} {
+            about-filter = "${cgit}/lib/cgit/filters/about-formatting.py";
+            source-filter = "${cgit}/lib/cgit/filters/syntax-highlighting.py";
             css = "/cgit.css";
             logo = "/cgit.png";
             favicon = "/favicon.ico";
@@ -69,8 +72,6 @@
             root-title = "tzlil.net";
             root-desc = "Tzlil's Git Repositories";
             scan-path = config.users.users.git.home;
-            about-filter = "${cgit}/lib/cgit/filters/about-formatting.py";
-            source-filter = "${cgit}/lib/cgit/filters/syntax-highlighting.py";
             logo-link = "/";
             readme = ":README.md";
           })}