From 926df6f44be08773dfc066287e78b4663c1c229e Mon Sep 17 00:00:00 2001
From: Mark Nipper <nipsy@bitgnome.net>
Date: Mon, 14 Oct 2024 01:31:23 -0700
Subject: More nipsy cgit

---
 hosts/arrakis/default.nix  | 6 ++++++
 hosts/arrakis/services.nix | 9 +++++++--
 2 files changed, 13 insertions(+), 2 deletions(-)

(limited to 'hosts')

diff --git a/hosts/arrakis/default.nix b/hosts/arrakis/default.nix
index e2f3a38..a8d1cdd 100644
--- a/hosts/arrakis/default.nix
+++ b/hosts/arrakis/default.nix
@@ -230,6 +230,12 @@
     };
   };
 
+  system.activationScripts = {
+    fix-acl-cgit-home-nipsy = ''
+      ${pkgs.acl}/bin/setfacl -m u:cgit:--x /home/nipsy
+    '';
+  };
+
   system.stateVersion = "23.11";
 
   systemd.services = {
diff --git a/hosts/arrakis/services.nix b/hosts/arrakis/services.nix
index ff8d5b8..bd73e3e 100644
--- a/hosts/arrakis/services.nix
+++ b/hosts/arrakis/services.nix
@@ -2,7 +2,7 @@
 
   environment.etc."gitconfig".text = ''
     [safe]
-    	directory = /home/nipsy/www/git
+    	directory = /home/nipsy/www/git/nix/.git
   '';
 
   security.acme = {
@@ -15,7 +15,12 @@
       "arrakis.bitgnome.net" = {
         enable = true;
         nginx.location = "/nipsy/git/";
-        scanPath = "/home/nipsy/www/git";
+        repos = {
+          nix = {
+            desc = "a NixOS configuration";
+            path = "/home/nipsy/www/git/nix";
+          };
+        };
         settings = {
           about-filter = "${pkgs.cgit}/lib/cgit/filters/about-formatting.sh";
           branch-sort = "age";
-- 
cgit v1.2.3