aboutsummaryrefslogtreecommitdiff
path: root/modules/services/gerrit/default.nix (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-07-18feat(modules/gerrit): manage secure configuration with nixFranck Cuny1-0/+1
Currently the secure configuration for gerrit is not managed by nix. This is likely going to break in the future and I'll hate myself for that. Let's move it into nix and encrypt it with age, like we do for other secrets. Change-Id: Ia7a006748a3ad64fa4b97ca9e8cbd98c99433982 Reviewed-on: https://cl.fcuny.net/c/world/+/622 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-06-18ref(gerrit): add the plugin to delete projectsFranck Cuny1-0/+2
I need to remove some repositories I created by mistake, this will make it easier than messing up with the database. Change-Id: Ia9357226532fe943d15eaec43413502849e39d3d Reviewed-on: https://cl.fcuny.net/c/world/+/444 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-06-10fix(fmt): correct formatting for all nix filesFranck Cuny1-1/+2
This was done by running `nixpkgs-fmt .'. Change-Id: I4ea6c1e759bf468d08074be2111cbc7af72df295 Reviewed-on: https://cl.fcuny.net/c/world/+/404 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-06-09fix(gerrit): don't backup tmp,logs,cache directoriesFranck Cuny1-1/+8
Change-Id: I73087942ed86fd2ad3575a4776dba97fac693468 Reviewed-on: https://cl.fcuny.net/c/world/+/361 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-06-09feat(gerrit): add plugin 'reviewnotes'Franck Cuny1-1/+9
This plugin stores review information for Gerrit changes in the `refs/notes/review' branch. Change-Id: I51c7fe1f8764617e0bff5455d3fe713b0e2f446e Reviewed-on: https://cl.fcuny.net/c/world/+/300 Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-06-04feat(gerrit): install the gerrit hookFranck Cuny1-0/+12
Create a few scripts that are used to trigger the hook when a patchset is created. Change-Id: Ibcfdb76b3e0ca29b9adc4c2719a8f81170818788 Reviewed-on: https://cl.fcuny.net/c/world/+/172 Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-05-29fix(gerrit): remove git suffix from project URLFranck Cuny1-1/+1
This has been dropped in cgit. Change-Id: I255ea20b4f81d080207ac8eac6f6727cac2d54f5 Reviewed-on: https://cl.fcuny.net/c/world/+/126 Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-05-28feat(gerrit): link to cgitFranck Cuny1-0/+14
Configure gitweb to link to our cgit instance Change-Id: I55cb96e7199bf2636a30689b277978008d6605eb Reviewed-on: https://cl.fcuny.net/c/world/+/88 Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-05-28feat(gerrit): backup all relevant directoriesFranck Cuny1-0/+2
Change-Id: I7d70a25f95cddedaba5e5186b6e7f83ddf9e7eb9 Reviewed-on: https://cl.fcuny.net/c/world/+/84 Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-05-27feat(gerrit): enable sending emailsFranck Cuny1-1/+10
Configure gerrit to send emails using fastmail's SMTP servers. Change-Id: I658373a2c1e9b3c5dcbe214a02ebe8ca1be69580 Reviewed-on: https://cl.fcuny.net/c/world/+/81 Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-05-27fix(gerrit): set the OAUTH client IDFranck Cuny1-0/+5
Change-Id: I2a5b554be29af9184ad504bcb8beca30c605e6c4 Reviewed-on: https://cl.fcuny.net/c/world/+/63 Reviewed-by: Franck Cuny <franck.cuny@gmail.com>
2022-05-27fix(gerrit): set the home directory for gitFranck Cuny1-1/+1
Change-Id: Idba41215b58e8cd77d8d4efa354a3acf52c6bc6d Reviewed-on: https://cl.fcuny.net/c/world/+/61 Reviewed-by: Franck Cuny <franck.cuny@gmail.com>
2022-05-26ref(gerrit): ensure the git user is presentFranck Cuny1-0/+9
Change-Id: Ie217a14a20474b626a2c66116663b785193978c2
2022-05-26fix(gerrit): use a compatible JDKFranck Cuny1-0/+3
Change-Id: I3fadf8a3a9a81c7966b4c048ace1ae259f0e3668
2022-05-26fix(gerrit): install the plugin for oauthFranck Cuny1-2/+8
Change-Id: I3e4a215b47a5a368210b268fa170aa2dddab721f
2022-05-26fix(gerrit): settings where in wrong placeFranck Cuny1-8/+8
Change-Id: I449f9032e32911fa33c26ec41faadb4f8acc8b1f
2022-05-26feat(gerrit): use OAUTH for authenticationFranck Cuny1-0/+10
2022-05-26fix(gerrit): force gerrit to run as the git userFranck Cuny1-0/+11
The default configuration wants to run gerrit with a DynamicUser. However, this prevent the server to generate the ssh keys needed by gerrit. Instead, we can force the server to run with the 'git' user, which already exists.
2022-05-26fix(gerrit): use localhost for the proxyFranck Cuny1-1/+1
2022-05-26fix(gerrit): remove extra '}' from stringFranck Cuny1-1/+1
2022-05-26fix(gerrit): apply a serverIdFranck Cuny1-0/+1
This identify the server (see https://github.com/NixOS/nixpkgs/blob/634141959076a8ab69ca2cca0f266852256d79ee/nixos/modules/services/web-apps/gerrit.nix#L141).
2022-05-26feat(gerrit): add the gerrit serverFranck Cuny1-0/+50
Gerrit is a tool for doing code review for git. It will be running at cl.fcuny.net and will be the main way to interact with my git repositories.