Overwrite gitolite-admin config from nixos
This commit is contained in:
parent
1ba577e9ee
commit
1448a42aaf
2 changed files with 14 additions and 1 deletions
|
@ -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;
|
||||
|
|
2
private
2
private
|
@ -1 +1 @@
|
|||
Subproject commit 31d1101109d460c94cb8736e8a37b90e00d52897
|
||||
Subproject commit 2c5b833741e51cd437fdc1122dbddb369ef307d0
|
Loading…
Reference in a new issue