summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcaley <195605706+cqley@users.noreply.github.com>2026-07-25 02:39:53 +0200
committerGitHub <noreply@github.com>2026-07-25 02:39:53 +0200
commitd3a7af904eea30f6de1b57e3883b3c8977c8ed9c (patch)
tree268fa0395ad090e7a44c318685f459a87f289f39
parent6d598880287bd56c1dc130b80f77a9044b09a0f0 (diff)
Create cgit.nix
-rw-r--r--nixos/hosts/bin/components/cgit.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/nixos/hosts/bin/components/cgit.nix b/nixos/hosts/bin/components/cgit.nix
new file mode 100644
index 0000000..5b6e75c
--- /dev/null
+++ b/nixos/hosts/bin/components/cgit.nix
@@ -0,0 +1,25 @@
+{
+ services.nginx = {
+ enable = true;
+ virtualHosts."5.231.118.254" = {};
+ };
+
+ services.cgit.blind = {
+ enable = true;
+ scanPath = "/srv/git";
+ nginx.virtualHost = "5.231.118.254";
+ gitHttpBackend = {
+ enable = true;
+ checkExportOkFiles = false;
+ };
+ settings = {
+ root-title = "blind";
+ root-desc = "";
+ enable-index-owner = 0;
+ enable-commit-graph = 1;
+ enable-log-filecount = 1;
+ enable-log-linecount = 1;
+ clone-prefix = "http://5.231.118.254";
+ };
+ };
+}