diff options
Diffstat (limited to 'config/services/git/cgit.nix')
| -rw-r--r-- | config/services/git/cgit.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/config/services/git/cgit.nix b/config/services/git/cgit.nix new file mode 100644 index 0000000..e146671 --- /dev/null +++ b/config/services/git/cgit.nix @@ -0,0 +1,18 @@ +{ config, ... }: +{ + services.cgit.default = { + enable = true; + scanPath = "/srv/git"; + gitHttpBackend.enable = false; + nginx = { + virtualHost = "${config.networking.hostName}.aristote.mesh"; + location = "/git/"; + }; + extraConfig = '' + root-title=repositories + root-desc=by Quentin Aristote + ''; + }; + + users.users.cgit.extraGroups = [ "git" ]; +} |
