summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--hosts/vps/git.nix6
-rw-r--r--mixins/cli.nix4
2 files changed, 9 insertions, 1 deletions
diff --git a/hosts/vps/git.nix b/hosts/vps/git.nix
index e334aeb..d991fda 100644
--- a/hosts/vps/git.nix
+++ b/hosts/vps/git.nix
@@ -54,7 +54,10 @@
                 transport fastcgi {
                   env SCRIPT_FILENAME ${pkgs.cgit}/cgit/cgit.cgi
                   env CGIT_CONFIG ${pkgs.writeText "cgitrc" (pkgs.lib.generators.toKeyValue {} {
-            css = "/cgit/cgit.css";
+            # css = "/cgit/cgit.css";
+            css = pkgs.fetchurl {
+              url = "https://jeremias.stotter.eu/cgi-bin/cgit.cgi/cgit-dark/plain/cgit.css";
+            };
             logo = "/cgit/cgit.png";
             favicon = "/favicon.ico";
             clone-url = pkgs.lib.concatStringsSep " " [
@@ -71,6 +74,7 @@
             source-filter = "${pkgs.cgit}/lib/cgit/filters/syntax-highlighting.py";
             logo-link = "/";
             virtual-root = "/cgit";
+            readme=":README.md";
           })}
                 }
               }
diff --git a/mixins/cli.nix b/mixins/cli.nix
index 4137377..6e1f1f3 100644
--- a/mixins/cli.nix
+++ b/mixins/cli.nix
@@ -40,6 +40,10 @@
           userName = "tzlil";
           userEmail = "tzlils@protonmail.com";
           enable = true;
+	  extraConfig = {
+	  	push.autoSetupRemote = true;
+		init.defaultBranch = "master";
+	  };
         };
         direnv = {
           enable = true;