diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2026-01-29 14:13:19 +0100 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2026-01-29 14:18:55 +0100 |
| commit | 7448c5e19d2db84ac748b6520080ffe4478eeae3 (patch) | |
| tree | 41d37babce4fcaab2cbaf4c9bd17be4c1dac2a9f /config/services/git/web/default.nix | |
| parent | c417db8913e6fffa9faec511f6e0e92bd8590085 (diff) | |
cgit: make mobile responsive
Diffstat (limited to 'config/services/git/web/default.nix')
| -rw-r--r-- | config/services/git/web/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/config/services/git/web/default.nix b/config/services/git/web/default.nix new file mode 100644 index 0000000..f5c8251 --- /dev/null +++ b/config/services/git/web/default.nix @@ -0,0 +1,27 @@ +{ config, lib, ... }: +let + virtualHost = "${config.networking.hostName}.aristote.mesh"; +in +{ + services.cgit.default = { + enable = true; + scanPath = "/srv/git"; + gitHttpBackend.enable = false; + nginx = { + inherit virtualHost; + location = "/git/"; + }; + extraConfig = '' + root-title=repositories + root-desc=by Quentin Aristote + head-include=${./head.html} + ''; + }; + services.nginx.virtualHosts."${virtualHost}".locations."= /git/cgit.css".alias = + lib.mkForce ./cgit.css; + + # give access to the repos + users.users.cgit.extraGroups = [ "git" ]; + + systemd.services.fcgiwrap-cgit-default.personal.monitor = true; +} |
