From b2bb2de8d0bd67a52911e189929beedb0c56cc9d Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 3 Aug 2024 17:19:11 +0200 Subject: fix(nixos/git-server): Tell gitolite to allow changing some `git` settings --- modules/nixos/vhack/git-server/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/nixos/vhack/git-server/default.nix b/modules/nixos/vhack/git-server/default.nix index 8bb1428..20f2989 100644 --- a/modules/nixos/vhack/git-server/default.nix +++ b/modules/nixos/vhack/git-server/default.nix @@ -73,6 +73,12 @@ in { group = "git"; extraGitoliteRc = '' $RC{UMASK} = 0027; # Enable group access, important for cgit. + + # Enable modifing git variables (for cgit.owner and such things) + $RC{GIT_CONFIG_KEYS} = 'cgit.owner cgit.desc cgit.section cgit.homepage gitweb.owner gitweb.description'; + push( @{$RC{ENABLE}}, 'config' ); + push( @{$RC{ENABLE}}, 'git-config' ); + push( @{$RC{ENABLE}}, 'cgit' ); ''; }; -- cgit 1.4.1