aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-08-18 20:43:13 -0300
committerEuAndreh <eu@euandre.org>2024-08-18 20:43:13 -0300
commitaabb1914b745b9d60f52894beecf9d66e539e712 (patch)
tree53fcd51ea67666946b4925f0019531e859b10db6
parentsystem.scm: Fix shell of "git" user (diff)
downloadserver-aabb1914b745b9d60f52894beecf9d66e539e712.tar.gz
server-aabb1914b745b9d60f52894beecf9d66e539e712.tar.xz
system.scm: Make /srv/git home directory of git service
-rw-r--r--src/guix/system.scm12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/guix/system.scm b/src/guix/system.scm
index f0f3852..31900f1 100644
--- a/src/guix/system.scm
+++ b/src/guix/system.scm
@@ -253,18 +253,10 @@
(group group)
(system? #t)
(comment "External SSH Git service user")
- (home-directory "/var/empty")
- (create-home-directory? #f)
+ (home-directory "/srv/git")
(shell
(file-append git "/bin/git-shell"))))))
-(define (git-activation config)
- (match-record config <git-configuration>
- (base-path)
- #~(begin
- (use-modules (guix build utils))
- (and=> #$base-path mkdir-p))))
-
(define git-service-type
(service-type
@@ -275,8 +267,6 @@
git-shepherd-services)
(service-extension account-service-type
git-accounts)
- (service-extension activation-service-type
- git-activation)
(service-extension profile-service-type
(compose list git-configuration-package))))
(default-value (git-configuration))