aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/org/euandre/queue.scm32
-rw-r--r--tests/internet/system.scm6
2 files changed, 36 insertions, 2 deletions
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
diff --git a/tests/internet/system.scm b/tests/internet/system.scm
index 1492775..0d9ddcc 100644
--- a/tests/internet/system.scm
+++ b/tests/internet/system.scm
@@ -4,13 +4,17 @@
(use-package-modules)
(use-service-modules
certbot
- mail)
+ cgit
+ mail
+ networking)
(operating-system
(host-name "a-internet-test-host")
(services
(append
(list
+ (service dhcp-client-service-type)
+ (service cgit-service-type queue:cgit-pre-configuration)
(service queue:shadow-group-service-type)
(service queue:dkimproxyout-service-type)
(service queue:cyrus-sasl-service-type)