diff options
| author | Max Audron <audron@cocaine.farm> | 2025-11-15 00:22:34 +0100 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2025-11-15 00:22:34 +0100 |
| commit | 53d246c2adda06165b21c55a2d5a4dc867b66994 (patch) | |
| tree | 133084ec0d492f5bb731214a91f744492cb050a4 /modules/git/default.nix | |
| parent | add readme (diff) | |
add git shell scripts
Diffstat (limited to '')
| -rw-r--r-- | modules/git/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/git/default.nix b/modules/git/default.nix index 465d859..e30e529 100644 --- a/modules/git/default.nix +++ b/modules/git/default.nix @@ -33,6 +33,7 @@ max-repodesc-length = 120; clone-url = "https://$HTTP_HOST/$CGIT_REPO_URL"; + readme = "README.adoc"; source-filter = "${pkgs.cgit}/lib/cgit/filters/syntax-highlighting.py"; # about-filter = "${pkgs.asciidoctor}" @@ -65,6 +66,12 @@ }; }; + system.activationScripts.setup-git-shell-commands.text = '' + if [[ ! -h "/var/lib/git/git-shell-commands" ]]; then + ln -s "${./git-shell-commands}" "/var/lib/git/git-shell-commands" + fi + ''; + services.nginx.virtualHosts = { "git.audron.dev" = { forceSSL = true; |
