summary refs log tree commit diff stats
path: root/modules/nixos/vhack/git-server
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-07-30 13:20:08 +0200
committerSilas Schöffel <sils@sils.li>2024-07-30 13:20:08 +0200
commit6f86a935e4e3c16855c68a95f544bfbf1cd37eb1 (patch)
tree570cbeb25f35669fce5807efa1c839feac09fa26 /modules/nixos/vhack/git-server
parentbuild(flake): update (diff)
downloadnixos-server-6f86a935e4e3c16855c68a95f544bfbf1cd37eb1.tar.gz
nixos-server-6f86a935e4e3c16855c68a95f544bfbf1cd37eb1.zip
fix(git-server): set git default-branch to main
Diffstat (limited to '')
-rw-r--r--modules/nixos/vhack/git-server/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/nixos/vhack/git-server/default.nix b/modules/nixos/vhack/git-server/default.nix
index 550bc90..0129699 100644
--- a/modules/nixos/vhack/git-server/default.nix
+++ b/modules/nixos/vhack/git-server/default.nix
@@ -13,6 +13,14 @@ in {
   };
 
   config = lib.mkIf cfg.enable {
+    programs.git = {
+      enable = true;
+      config = {
+        init = {
+          defaultBranch = "main";
+        };
+      };
+    };
     services = {
       gitolite = {
         enable = true;