From 1d81e4feed091cd164fe959a517943396fda476f Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 17 Mar 2023 10:49:38 -0300 Subject: queue.scm: Add cgit-pre-configuration variable --- src/org/euandre/queue.scm | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'src/org/euandre/queue.scm') diff --git a/src/org/euandre/queue.scm b/src/org/euandre/queue.scm index 5175ec2..5e4098c 100644 --- a/src/org/euandre/queue.scm +++ b/src/org/euandre/queue.scm @@ -33,8 +33,10 @@ #:use-module (gnu packages python-xyz) #:use-module (gnu packages time) #:use-module (gnu packages tls) + #:use-module (gnu packages version-control) #:use-module (gnu packages xml) #:use-module (gnu services certbot) + #:use-module (gnu services cgit) #:use-module (gnu services mail) #:use-module (gnu services shepherd) #:use-module (gnu services web) @@ -149,7 +151,9 @@ dovecot-service-type - dovecot-configuration)) + dovecot-configuration + + cgit-pre-configuration)) @@ -1550,6 +1554,32 @@ namespace inbox { ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; OS ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +(define cgit-pre-configuration + (cgit-configuration + (nginx '()) + (source-filter (file-append cgit "/lib/cgit/filters/syntax-highlighting.py")) + (about-filter (file-append cgit "/lib/cgit/filters/about-formatting.sh")) + (virtual-root "/git/") + (remove-suffix? #t) + (nocache? #t) + (enable-commit-graph? #t) + (enable-follow-links? #t) + (enable-index-links? #t) + (enable-index-owner? #f) + (enable-log-filecount? #t) + (enable-log-linecount? #t) + (enable-remote-branches? #t) + (enable-subject-links? #t) + (snapshots '("tar.gz" "tar.xz")) + (root-desc "Patches welcome!") + (root-title (string-append (gethostname) " repositories")) + (logo "/git/static/cgit.png") + (favicon "/git/static/favicon.ico") + (css "/git/static/cgit.css") + (extra-options + '("enable-blame=1" + "readme=:README.md" + "readme=:README")))) (list -- cgit v1.2.3