services: Add the build group to the supplementary groups of build users.

* gnu/services/base.scm (guix-build-accounts): Add
  'supplementary-groups' field.
This commit is contained in:
Ludovic Courtès 2014-06-04 22:17:20 +02:00
parent c17b5ab4db
commit 3d116a70f9
1 changed files with 6 additions and 0 deletions

View File

@ -324,6 +324,12 @@ starting at FIRST-UID, and under GID."
(name (format #f "guixbuilder~2,'0d" n))
(uid (+ first-uid n -1))
(group group)
;; guix-daemon expects GROUP to be listed as a
;; supplementary group too:
;; <http://lists.gnu.org/archive/html/bug-guix/2013-01/msg00239.html>.
(supplementary-groups (list group))
(comment (format #f "Guix Build User ~2d" n))
(home-directory "/var/empty")
(shell #~(string-append #$shadow "/sbin/nologin"))))