1
0
Fork 0

Overwrite gitolite-admin config from nixos

This commit is contained in:
Malte Brandy 2021-08-03 22:55:27 +02:00
parent 1ba577e9ee
commit 1448a42aaf
2 changed files with 14 additions and 1 deletions

View file

@ -107,6 +107,19 @@ in
isSystemUser = true;
group = gitoliteCfg.group;
};
systemd.services.gitolite-init.postStart = lib.mkIf pkgs.withSecrets ''
export GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no"
dir=$(mktemp -d)
cd $dir
git clone git@localhost:gitolite-admin
cd gitolite-admin
cp -r ${../../private/gitolite}/* .
if [[ "$(git status --porcelain)" != "" ]]; then
git add -A
git commit -m 'Overwrite gitolite config from nixos config'
git push -u origin master
fi
'';
services = {
gitolite = {
enable = true;

@ -1 +1 @@
Subproject commit 31d1101109d460c94cb8736e8a37b90e00d52897
Subproject commit 2c5b833741e51cd437fdc1122dbddb369ef307d0