diff options
author | Silas Schöffel <sils@sils.li> | 2024-07-30 13:20:08 +0200 |
---|---|---|
committer | Silas Schöffel <sils@sils.li> | 2024-07-30 13:20:08 +0200 |
commit | 6f86a935e4e3c16855c68a95f544bfbf1cd37eb1 (patch) | |
tree | 570cbeb25f35669fce5807efa1c839feac09fa26 /modules/nixos/vhack/git-server | |
parent | build(flake): update (diff) | |
download | nixos-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.nix | 8 |
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; |