From e87db0e149b366c7ec6cb979491769537be1b0a6 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 28 Nov 2022 15:40:56 -0300 Subject: src/infrastructure/guix/: Make uniform path for git:// and https:// access Instead of having repositories served over the Git protocol differ from when they are served via the Dumb HTTP protocol. Previously, nginx was doing the URL rewriting, and --- src/infrastructure/guix/channels.scm | 2 +- src/infrastructure/guix/system.scm | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/infrastructure/guix/channels.scm b/src/infrastructure/guix/channels.scm index 2483441..e5ccd6a 100644 --- a/src/infrastructure/guix/channels.scm +++ b/src/infrastructure/guix/channels.scm @@ -2,7 +2,7 @@ (list (channel (name 'org-euandre) - (url "git://euandre.org/package-repository") + (url "git://euandre.org/git/package-repository") (branch "main") (introduction (make-channel-introduction diff --git a/src/infrastructure/guix/system.scm b/src/infrastructure/guix/system.scm index 697d4c1..91d1940 100644 --- a/src/infrastructure/guix/system.scm +++ b/src/infrastructure/guix/system.scm @@ -1713,7 +1713,7 @@ (name "git") (group "git") (comment "Public Git user") - (home-directory "/srv/git") + (home-directory "/srv/git/git") (shell (file-append git "/bin/git-shell")))) %base-user-accounts)) (groups @@ -1782,6 +1782,7 @@ (nginx '()) (source-filter (file-append cgit "/lib/cgit/filters/syntax-highlighting.py")) (about-filter (file-append cgit "/lib/cgit/filters/about-formatting.sh")) + (repository-directory "/srv/git/git") (virtual-root "/git/") (remove-suffix? #t) (nocache? #t) -- cgit v1.2.3