diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-03 17:19:11 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-13 22:40:35 +0200 |
commit | b2bb2de8d0bd67a52911e189929beedb0c56cc9d (patch) | |
tree | c762255ca7b68c6c22b2c1514c877891db3b4fdd | |
parent | test(tests/git-server): Add initial tests (diff) | |
download | nixos-server-b2bb2de8d0bd67a52911e189929beedb0c56cc9d.tar.gz nixos-server-b2bb2de8d0bd67a52911e189929beedb0c56cc9d.zip |
fix(nixos/git-server): Tell gitolite to allow changing some `git` settings
Diffstat (limited to '')
-rw-r--r-- | modules/nixos/vhack/git-server/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
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' ); ''; }; |