summary refs log tree commit diff
path: root/host/Rory-nginx/services/cgit.nix
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-07-04 14:59:36 +0200
committerRory& <root@rory.gay>2024-07-04 14:59:36 +0200
commitdd7b872694441a96b8b042ccbc4b63a96d0b89b9 (patch)
tree76a25875e08415c38cdb7b5ad8f93241b387d078 /host/Rory-nginx/services/cgit.nix
parentUpdate flake inputs (diff)
downloadRory-Open-Architecture-dd7b872694441a96b8b042ccbc4b63a96d0b89b9.tar.xz
Nixfmt
Diffstat (limited to 'host/Rory-nginx/services/cgit.nix')
-rw-r--r--host/Rory-nginx/services/cgit.nix97
1 files changed, 53 insertions, 44 deletions
diff --git a/host/Rory-nginx/services/cgit.nix b/host/Rory-nginx/services/cgit.nix
index dbab79c..72ee221 100644
--- a/host/Rory-nginx/services/cgit.nix
+++ b/host/Rory-nginx/services/cgit.nix
@@ -1,54 +1,63 @@
-{ config, pkgs, lib, ... }:
-  
-let base_cgit_config = {
-  enable = true;
-  nginx.virtualHost = "cgit.rory.gay";
-  package = pkgs.cgit-pink;
-  scanPath = "/data/nginx/html_git";
-  settings = {
-    css = "/cgit.css";
-    logo = "/cgit.png";
-    favicon = "/favicon.ico";
-    readme = ":README.MD";
-    about-filter = "${pkgs.cgit-pink}/lib/cgit/filters/about-formatting.sh";
-    source-filter = "${pkgs.cgit-pink}/lib/cgit/filters/syntax-highlighting.py";
-    clone-url = (lib.concatStringsSep " " [
-      "https://cgit.rory.gay/$CGIT_REPO_URL"
-      "ssh://<user>@git.rory.gay:$CGIT_REPO_URL"
-    ]);
-    enable-log-filecount = 1;
-    enable-log-linecount = 1;
-    enable-git-config = 1;
-#testing
-    enable-blame = 1;
-    enable-commit-graph = 1;
-    enable-follow-links = 1;
-    enable-http-clone = 1;
-    enable-index-links = 1;
-    enable-remote-branches = 1;
-    enable-subject-links = 1;
-    enable-tree-linenumbers = 1;
-    max-atom-items = 100;
-    max-commit-count = 250;
-    max-repo-count = 500;
-    snapshots = "tar.xz";
-    #side-by-side-diffs = 1;
+{
+  config,
+  pkgs,
+  lib,
+  ...
+}:
 
+let
+  base_cgit_config = {
+    enable = true;
+    nginx.virtualHost = "cgit.rory.gay";
+    package = pkgs.cgit-pink;
+    scanPath = "/data/nginx/html_git";
+    settings = {
+      css = "/cgit.css";
+      logo = "/cgit.png";
+      favicon = "/favicon.ico";
+      readme = ":README.MD";
+      about-filter = "${pkgs.cgit-pink}/lib/cgit/filters/about-formatting.sh";
+      source-filter = "${pkgs.cgit-pink}/lib/cgit/filters/syntax-highlighting.py";
+      clone-url = (
+        lib.concatStringsSep " " [
+          "https://cgit.rory.gay/$CGIT_REPO_URL"
+          "ssh://<user>@git.rory.gay:$CGIT_REPO_URL"
+        ]
+      );
+      enable-log-filecount = 1;
+      enable-log-linecount = 1;
+      enable-git-config = 1;
+      #testing
+      enable-blame = 1;
+      enable-commit-graph = 1;
+      enable-follow-links = 1;
+      enable-http-clone = 1;
+      enable-index-links = 1;
+      enable-remote-branches = 1;
+      enable-subject-links = 1;
+      enable-tree-linenumbers = 1;
+      max-atom-items = 100;
+      max-commit-count = 250;
+      max-repo-count = 500;
+      snapshots = "tar.xz";
+      #side-by-side-diffs = 1;
 
-    root-title = "cgit.rory.gay";
-    root-desc = "Rory&s Git Repositories";
+      root-title = "cgit.rory.gay";
+      root-desc = "Rory&s Git Repositories";
+    };
   };
-}; in {
+in
+{
   services.cgit."main" = base_cgit_config;
 
   services.cgit."ocp" = lib.attrsets.recursiveUpdate base_cgit_config {
     scanPath = "/data/nginx/html_git/.ocp";
     nginx.location = "/.ocp/";
-    settings.clone-url = (lib.concatStringsSep " " [
-      "https://cgit.rory.gay/.ocp/$CGIT_REPO_URL"
-      "ssh://<user>@git.rory.gay:.ocp/$CGIT_REPO_URL"
-    ]);
+    settings.clone-url = (
+      lib.concatStringsSep " " [
+        "https://cgit.rory.gay/.ocp/$CGIT_REPO_URL"
+        "ssh://<user>@git.rory.gay:.ocp/$CGIT_REPO_URL"
+      ]
+    );
   };
 }
-
-