From 3c8dc85a584c98bc90088ec1c85933d4d10e7383 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 22 Aug 2025 03:35:46 +0100 Subject: laminar: Ensure the nginx user can access the archive directory. --- guix/forge/laminar.scm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/guix/forge/laminar.scm b/guix/forge/laminar.scm index 16f5de7..dcbc5bf 100644 --- a/guix/forge/laminar.scm +++ b/guix/forge/laminar.scm @@ -1,5 +1,5 @@ ;;; guix-forge --- Guix software forge meta-service -;;; Copyright © 2021–2022, 2024 Arun Isaac +;;; Copyright © 2021–2022, 2024–2025 Arun Isaac ;;; ;;; This file is part of guix-forge. ;;; @@ -164,7 +164,15 @@ of @var{} objects." (lambda (file stat) (memq (stat:type stat) '(regular directory))) - #:directories? #t)))))) + #:directories? #t)) + ;; Ensure the state directory has the right permissions so + ;; that the nginx user can get in and serve files from the + ;; archive directory. The state directory is the home of the + ;; laminar user and is created with more restrictive + ;; permissions. So, the permissions need to be overridden. + ;; The archive directory, however, is always created with + ;; the right permissions. + (chmod #$state-directory #o755))))) (define forge-laminar-service-type (service-type -- cgit 1.4.1