From 6f86a935e4e3c16855c68a95f544bfbf1cd37eb1 Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Tue, 30 Jul 2024 13:20:08 +0200 Subject: fix(git-server): set git default-branch to main --- modules/nixos/vhack/git-server/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- cgit 1.4.1